r14326 by jghali - fix potential crash in print preview dialog if generated ps file happens to be invalid

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 22 15:05:18 CET 2009


Revision: 14326
Author: jghali
Date: 2009-11-22T05:04:38.369153Z
Commit message: fix potential crash in print preview dialog if generated ps file happens to be invalid

Changeset: 
M  /trunk/Scribus/scribus/ui/preview.cpp

Diffs:
Index: scribus/ui/preview.cpp
===================================================================
--- scribus/ui/preview.cpp	(revision 14325)
+++ scribus/ui/preview.cpp	(revision 14326)
@@ -987,7 +987,8 @@
 				QMap<QString, int>::Iterator sepit;
 				for (sepit = sepsToFileNum.begin(); sepit != sepsToFileNum.end(); ++sepit)
 				{
-					if (flagsVisible[sepit.key()]->isChecked())
+					const QCheckBox* checkBox = flagsVisible.value(sepit.key(), NULL);
+					if (checkBox && checkBox->isChecked())
 					{
 						QString fnam;
 						if (GsMinor < 54)




More information about the scribus-commit mailing list