fix for #2209 "Can't display toolbars and xpTree": always call CommonInit() in SelectDrawingSurface().

This commit is contained in:
pierre%netscape.com 1999-01-15 22:35:41 +00:00
parent d1c2b68f8d
commit cabf7ef087

View File

@ -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;
}