[gthumb] Bug 616454: crash after saving a crop with width or height of 1px
- From: Michael J. Chudobiak <mjc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Bug 616454: crash after saving a crop with width or height of 1px
- Date: Thu, 22 Apr 2010 18:31:27 +0000 (UTC)
commit c6829c358449a898a3ed1d428d81a5eaca776729
Author: Matthias Hawran <matthias hawran net>
Date: Thu Apr 22 14:28:19 2010 -0400
Bug 616454: crash after saving a crop with width or height of 1px
gthumb/pixbuf-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/pixbuf-utils.c b/gthumb/pixbuf-utils.c
index cbe0d1a..5193099 100644
--- a/gthumb/pixbuf-utils.c
+++ b/gthumb/pixbuf-utils.c
@@ -429,8 +429,8 @@ _gdk_pixbuf_scale_simple_safe (const GdkPixbuf *src,
int x_ratio, y_ratio;
int temp_width = dest_width, temp_height = dest_height;
- g_assert (dest_width > 1);
- g_assert (dest_height > 1);
+ g_assert (dest_width >= 1);
+ g_assert (dest_height >= 1);
x_ratio = gdk_pixbuf_get_width (src) / dest_width;
y_ratio = gdk_pixbuf_get_height (src) / dest_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]