forked from AuroraMiddleware/gtk
Be robust and reject rectangles with negative width or height. (#331467,
2006-02-17 Matthias Clasen <mclasen@redhat.com> * gdk/gdkregion-generic.c (gdk_region_union_with_rect): Be robust and reject rectangles with negative width or height. (#331467, Benjamin Berg)
This commit is contained in:
parent
2acb0491fb
commit
ba6a8de664
@ -1,3 +1,10 @@
|
||||
2006-02-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkregion-generic.c (gdk_region_union_with_rect):
|
||||
Be robust and reject rectangles with negative width or
|
||||
height. (#331467, Benjamin Berg)
|
||||
|
||||
|
||||
2006-02-17 Kristian Rietveld <kris@imendio.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||
|
@ -1,3 +1,10 @@
|
||||
2006-02-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkregion-generic.c (gdk_region_union_with_rect):
|
||||
Be robust and reject rectangles with negative width or
|
||||
height. (#331467, Benjamin Berg)
|
||||
|
||||
|
||||
2006-02-17 Kristian Rietveld <kris@imendio.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||
|
@ -248,7 +248,7 @@ gdk_region_union_with_rect (GdkRegion *region,
|
||||
g_return_if_fail (region != NULL);
|
||||
g_return_if_fail (rect != NULL);
|
||||
|
||||
if (!rect->width || !rect->height)
|
||||
if (rect->width <= 0 || rect->height <= 0)
|
||||
return;
|
||||
|
||||
tmp_region.rects = &tmp_region.extents;
|
||||
|
Loading…
Reference in New Issue
Block a user