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
This commit is contained in:
agl@chromium.org 2009-12-02 22:24:40 +00:00
parent aa4f0c682d
commit 297a11cbc6

View File

@ -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;