Allow x and y to be NULL in gdk_window_get_geometry

Fixes a crash reported in bug #593249
This commit is contained in:
Alexander Larsson 2009-08-27 13:34:00 +02:00
parent 1932f32ef2
commit 858e6bcd65

View File

@ -7368,8 +7368,10 @@ gdk_window_get_geometry (GdkWindow *window,
parent = private->parent;
if (parent && !gdk_window_has_impl (parent))
{
*x -= parent->abs_x;
*y -= parent->abs_y;
if (x)
*x -= parent->abs_x;
if (y)
*y -= parent->abs_y;
}
}
else