r19018 by craig - #12200: Fix crash in preview quality switcher with no doc open

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 7 05:45:50 UTC 2014


Author: craig
Date: Mon Apr  7 05:45:49 2014
New Revision: 19018

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19018
Log:
#12200: Fix crash in preview quality switcher with no doc open

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19018&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Apr  7 05:45:49 2014
@@ -10866,6 +10866,8 @@
 
 void ScribusMainWindow::changePreviewQuality(int index)
 {
+	if (!HaveDoc)
+		return;
 	doc->allItems_ChangePreviewResolution(index);
 	doc->view()->DrawNew();
 }




More information about the scribus-commit mailing list