Index: src/ports/SkFontConfigInterface_android.cpp |
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp |
index 738b11434e348953f27dc9b86a570e8cd6407e8b..e9886188b247fb6172a8de6f1a1288f1bce1f81c 100644 |
--- a/src/ports/SkFontConfigInterface_android.cpp |
+++ b/src/ports/SkFontConfigInterface_android.cpp |
@@ -593,7 +593,7 @@ SkTypeface* SkFontConfigInterfaceAndroid::nextLogicalTypeface(SkFontID currFontI |
const SkTypeface* currTypeface = SkTypefaceCache::FindByID(currFontID); |
// non-system fonts are not in the font cache so if we are asked to fallback |
// for a non-system font we will start at the front of the chain. |
- if (NULL != currTypeface && currFontID == origFontID) { |
+ if (NULL != currTypeface && currFontID != origFontID) { |
currFontRecID = ((FontConfigTypeface*)currTypeface)->getIdentity().fID; |
SkASSERT(INVALID_FONT_REC_ID != currFontRecID); |
} |