fix crash
git-svn-id: svn://10.0.0.236/trunk@24648 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user