bug 111251, checkin for adam@gimp.org,
very minor inefficiency in nsFontMetricsGTK.cpp r=bstell@netscape.com, sr=blizzard git-svn-id: svn://10.0.0.236/trunk@108861 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ca87a319db
commit
bd7758a217
@ -2159,9 +2159,10 @@ nsFontGTKNormal::nsFontGTKNormal(nsFontGTK *aFont)
|
||||
{
|
||||
mAABaseSize = aFont->mSize;
|
||||
mFontHolder = aFont->GetGDKFont();
|
||||
if (!mFontHolder)
|
||||
if (!mFontHolder) {
|
||||
aFont->LoadFont();
|
||||
mFontHolder = aFont->GetGDKFont();
|
||||
mFontHolder = aFont->GetGDKFont();
|
||||
}
|
||||
NS_ASSERTION(mFontHolder, "font to copy not loaded");
|
||||
if (mFontHolder)
|
||||
::gdk_font_ref(mFontHolder);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user