Index: src/core/SkTypeface.cpp |
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp |
index fcbb7452d0297e4e5add82ff4ac5c222553bf36a..2c7db68d87534701a821bd6e68f1d1b75d26b93f 100644 |
--- a/src/core/SkTypeface.cpp |
+++ b/src/core/SkTypeface.cpp |
@@ -107,7 +107,7 @@ uint32_t SkTypeface::UniqueID(const SkTypeface* face) { |
} |
bool SkTypeface::Equal(const SkTypeface* facea, const SkTypeface* faceb) { |
- return SkTypeface::UniqueID(facea) == SkTypeface::UniqueID(faceb); |
+ return facea == faceb || SkTypeface::UniqueID(facea) == SkTypeface::UniqueID(faceb); |
} |
/////////////////////////////////////////////////////////////////////////////// |