Move the call to gdk_error_trap_pop() to the right place, fixing a problem
Wed Oct 29 15:01:32 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move the call to gdk_error_trap_pop() to the right place, fixing a problem where we'd pop() too many times when bailing out. (#123302, Thomas Leonard)
This commit is contained in:
@ -652,6 +652,8 @@ _gdk_x11_copy_to_image (GdkDrawable *drawable,
|
||||
}
|
||||
}
|
||||
|
||||
gdk_error_trap_pop ();
|
||||
|
||||
out:
|
||||
|
||||
if (have_grab)
|
||||
@ -660,8 +662,6 @@ _gdk_x11_copy_to_image (GdkDrawable *drawable,
|
||||
have_grab = FALSE;
|
||||
}
|
||||
|
||||
gdk_error_trap_pop ();
|
||||
|
||||
if (success && !image)
|
||||
{
|
||||
/* We "succeeded", but could get no content for the image so return junk */
|
||||
|
||||
Reference in New Issue
Block a user