[glade] glade_preview_window_screenshot() fixed segfault when saving to png file. Bug #741165 "Previewer cra
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] glade_preview_window_screenshot() fixed segfault when saving to png file. Bug #741165 "Previewer cra
- Date: Fri, 5 Dec 2014 17:22:13 +0000 (UTC)
commit ffbe1ffedbcce5c468b37671ee25302fa47567de
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Dec 5 14:17:59 2014 -0300
glade_preview_window_screenshot() fixed segfault when saving to png file.
Bug #741165 "Previewer crashes when taking PNG screenshot"
gladeui/glade-preview-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-preview-window.c b/gladeui/glade-preview-window.c
index afef80e..dc350ed 100644
--- a/gladeui/glade-preview-window.c
+++ b/gladeui/glade-preview-window.c
@@ -498,7 +498,7 @@ glade_preview_window_screenshot (GladePreviewWindow *window,
const gchar *ext = glade_preview_get_extension (filename);
GError *error = NULL;
- if (gdk_pixbuf_save (pix, filename, ext ? ext : "png", &error, NULL))
+ if (!gdk_pixbuf_save (pix, filename, ext ? ext : "png", &error, NULL))
{
g_warning ("Could not save screenshot to %s because %s", filename, error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]