diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index fcbb7452d0..2c7db68d87 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); } ///////////////////////////////////////////////////////////////////////////////