mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +00:00
fix crash
This commit is contained in:
parent
6917c547df
commit
517966a1f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user