fix crash

This commit is contained in:
pavlov%pavlov.net 1999-03-22 03:48:51 +00:00
parent 6917c547df
commit 517966a1f9

View File

@ -283,9 +283,12 @@ NS_IMETHODIMP nsRenderingContextGTK::PopState(PRBool &aClipEmpty)
mRegion = state->mClipRegion;
mFontMetrics = state->mFontMetrics;
GdkRegion *rgn;
mRegion->GetNativeRegion((void*&)rgn);
::gdk_gc_set_clip_region (mSurface->GetGC(), rgn);
if (mSurface)
{
GdkRegion *rgn;
mRegion->GetNativeRegion((void*&)rgn);
::gdk_gc_set_clip_region (mSurface->GetGC(), rgn);
}
if (state->mColor != mCurrentColor)
SetColor(state->mColor);