From cabf7ef087601c29b4aaa7e9d3afa44234e7b14b Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Fri, 15 Jan 1999 22:35:41 +0000 Subject: [PATCH] fix for #2209 "Can't display toolbars and xpTree": always call CommonInit() in SelectDrawingSurface(). --- gfx/src/mac/nsRenderingContextMac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/src/mac/nsRenderingContextMac.cpp b/gfx/src/mac/nsRenderingContextMac.cpp index e1d5842810d2..c0aa77ec3dec 100644 --- a/gfx/src/mac/nsRenderingContextMac.cpp +++ b/gfx/src/mac/nsRenderingContextMac.cpp @@ -506,7 +506,7 @@ void nsRenderingContextMac::SelectDrawingSurface(nsDrawingSurfaceMac aSurface, G SetQuickDrawEnvironment(gs, clipToClipRegion); - if (isNewGS) +// if (isNewGS) CommonInit(); } @@ -552,7 +552,7 @@ NS_IMETHODIMP nsRenderingContextMac::SetPortTextState() ::TextFont(theStyle.tsFont); ::TextSize(theStyle.tsSize); ::TextFace(theStyle.tsFace); - + return NS_OK; }