From b69cf1e9501642affe00dd7d3a4b2937efe02cef Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 28 Aug 1998 02:56:22 +0000 Subject: [PATCH] Fixed call to GetFontCache git-svn-id: svn://10.0.0.236/trunk@8674 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/motif/nsWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/motif/nsWindow.cpp b/mozilla/widget/src/motif/nsWindow.cpp index 6399620fe6a..cace965f5a2 100644 --- a/mozilla/widget/src/motif/nsWindow.cpp +++ b/mozilla/widget/src/motif/nsWindow.cpp @@ -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) {