From 3e28887a24bdb36b64607ab07b1c0589ca4c9a15 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 17 May 2017 19:21:27 -0400 Subject: [PATCH] Fixed the build. --- common/attrlist.c | 4 ++-- windows/attrstr.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/attrlist.c b/common/attrlist.c index 7ea65fa6..ec0b12bd 100644 --- a/common/attrlist.c +++ b/common/attrlist.c @@ -342,9 +342,9 @@ static int specsIdentical(struct attr *attr, uiAttributeSpec *spec) attr->spec.G == spec->G && attr->spec.B == spec->B && attr->spec.A == spec->A; - // TODO use boolsEqual() on boolean features } - // handles the rest + // handles the rest, including pointer comparison for uiAttributeFeatures + // TODO rename it to uiAttributeOpenTypeFeatures? return attr->spec.Value == spec->Value; } diff --git a/windows/attrstr.cpp b/windows/attrstr.cpp index 3b652979..8f5e0adf 100644 --- a/windows/attrstr.cpp +++ b/windows/attrstr.cpp @@ -195,7 +195,7 @@ static int processAttribute(uiAttributedString *s, uiAttributeSpec *spec, size_t break; } break; - cae uiAttributeOpenTypeFeatures: + case uiAttributeFeatures: setFeaturesInRange(p, start, end, (uiOpenTypeFeatures *) (spec->Value)); break; default: