This commit is contained in:
troy%netscape.com 1998-08-28 02:56:22 +00:00
Родитель 1be78b877e
Коммит 31c7923449
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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) {