diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 02bed6d048ad..bac95bc84df2 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -347,13 +347,11 @@ nsPresContext::GetFontPreferences() pref.Append(langGroup); PRInt32 size = nsContentUtils::GetIntPref(pref.get()); - if (size > 0) { - if (unit == eUnit_px) { - mMinimumFontSize = NSFloatPixelsToTwips((float)size, p2t); - } - else if (unit == eUnit_pt) { - mMinimumFontSize = NSIntPointsToTwips(size); - } + if (unit == eUnit_px) { + mMinimumFontSize = NSFloatPixelsToTwips((float)size, p2t); + } + else if (unit == eUnit_pt) { + mMinimumFontSize = NSIntPointsToTwips(size); } // get attributes specific to each generic font