From 297a11cbc63d90c0c28cfaece87f25bac6a55258 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Wed, 2 Dec 2009 22:24:40 +0000 Subject: [PATCH] Remove check for empty devPath Removes check for empty devPath since it was causing an assertion failure on Mac OS X when drawing small fonts within the browser action badges. BUG=none TEST=none Patch by andybons1. http://codereview.appspot.com/163056 git-svn-id: http://skia.googlecode.com/svn/trunk@450 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkScalerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index 30acff7eb9..413f06c1f3 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp @@ -319,7 +319,7 @@ void SkScalerContext::getMetrics(SkGlyph* glyph) { SkIRect ir; devPath.getBounds().roundOut(&ir); - if (ir.isEmpty() || !ir.is16Bit()) { + if (!ir.is16Bit()) { goto SK_ERROR; } glyph->fLeft = ir.fLeft;