r18017 by jghali - #11320: Changing Preferences, On Screen preview causes Signal 11 crash

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 31 09:23:05 UTC 2012


Author: jghali
Date: Mon Dec 31 09:23:05 2012
New Revision: 18017

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18017
Log:
#11320: Changing Preferences, On Screen preview causes Signal 11 crash

Modified:
    branches/Version14x/Scribus/scribus/scribus.cpp

Modified: branches/Version14x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18017&path=/branches/Version14x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribus.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribus.cpp Mon Dec 31 09:23:05 2012
@@ -7770,7 +7770,7 @@
 	prefsManager->applyLoadedShortCuts();
 
 	int newImageQuality = prefsManager->appPrefs.toolSettings.lowResType;
-	if (oldImageQuality != newImageQuality)
+	if (view && (oldImageQuality != newImageQuality))
 		view->previewQualitySwitcher->setCurrentIndex(newImageQuality);
 
 	QWidgetList windows = wsp->windowList();




More information about the scribus-commit mailing list