Fixed call to GetFontCache

git-svn-id: svn://10.0.0.236/trunk@8674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-08-28 02:56:22 +00:00
parent 1b64af0c9b
commit b69cf1e950

View File

@@ -833,7 +833,8 @@ void nsWindow::SetFont(const nsFont &aFont)
if (mContext == nsnull) {
return;
}
nsIFontCache* fontCache = mContext->GetFontCache();
nsIFontCache* fontCache;
mContext->GetFontCache(fontCache);
if (fontCache != nsnull) {
nsIFontMetrics* metrics = fontCache->GetMetricsFor(aFont);
if (metrics != nsnull) {