Author: rpmcruz
Date: Mon Jun 2 17:30:45 2008
New Revision: 47996
URL: http://svn.opensuse.org/viewcvs/yast?rev=47996&view=rev
Log:
* src/YGUI.cc: fixed bug 395484. Wrong check that assumed error
was set, crashing...
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUI.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=47996&r1=47995&r2=47996&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Jun 2 17:30:45 2008
@@ -24,6 +24,9 @@
* src/ygtkwizard.c: let the side pane shrink.
+ * src/YGUI.cc: fixed bug 395484. Wrong check that assumed error
+ was set, crashing...
+
2008-05-28 Ricardo Cruz
* src/YGDialog.cc: bug fix: seems like we shouldn't unref the
Modified: trunk/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=47996&r1=47995&r2=47996&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Mon Jun 2 17:30:45 2008
@@ -389,13 +389,15 @@
}
yuiDebug() << "Saving screen shot to " << filename << endl;
- if (gdk_pixbuf_save (shot, filename.c_str(), "png", &error, NULL)) {
- yuiError() << "Couldn't save screen shot " << filename << endl;
- if (interactive) {
- string msg = _("Couldn't save screenshot to file ") + filename
- + " - " + error->message;
- errorMsg (msg.c_str());
+ if (!gdk_pixbuf_save (shot, filename.c_str(), "png", &error, NULL)) {
+ string msg = _("Couldn't save screenshot to file ") + filename;
+ if (error) {
+ msg += "\n";
+ msg += std::string ("\n") + error->message;
}
+ yuiError() << msg << endl;
+ if (interactive)
+ errorMsg (msg.c_str());
goto makeScreenShot_ret;
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org