[glade/glade-3-18] 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-3-18] glade_preview_window_screenshot() fixed segfault when saving to png file. Bug #741165 "Previewer cra
- Date: Fri, 5 Dec 2014 17:22:08 +0000 (UTC)
commit 1a47c6b15a0297dee5c65f4eb6c1bd1bfeb36946
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 cb2bfd6..388ba2d 100644
--- a/gladeui/glade-preview-window.c
+++ b/gladeui/glade-preview-window.c
@@ -481,7 +481,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]