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

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 22 15:00:20 CET 2009


Revision: 14325
Author: jghali
Date: 2009-11-22T05:03:25.908176Z
Commit message: fix potential crash in print preview dialog is generated ps file happens to be invalid

Changeset: 
M  /branches/Version135/Scribus/scribus/preview.cpp

Diffs:
Index: scribus/preview.cpp
===================================================================
--- scribus/preview.cpp	(revision 14324)
+++ scribus/preview.cpp	(revision 14325)
@@ -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