diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-30 19:45:27 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-10-30 19:45:27 (GMT) |
commit | 320c350df270a99dd9a26dc9d84a6db88e8e4e21 (patch) | |
tree | 77b095c406637dc4e67f0e1485d221886fcde1cb /gtk | |
parent | a78b624f429c7c5b36c51aa1c7071fc0648387e5 (diff) |
Replace the g_assert with g_return_if_fail so that the engine does not abort when the size is outside of the allowed range.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/engine/sugar-style.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c index e913744..e3ca9e6 100644 --- a/gtk/engine/sugar-style.c +++ b/gtk/engine/sugar-style.c @@ -26,7 +26,7 @@ #include "sugar-info.h" #include "sugar-drawing.h" -#define SANITIZE_SIZE g_assert (width >= -1 && height >= -1); \ +#define SANITIZE_SIZE g_return_if_fail (width >= -1 && height >= -1); \ if (width == -1 && height == -1) { \ gdk_drawable_get_size (GDK_DRAWABLE (window), &width, &height); \ } else if (width == -1) { \ |