r14070 by jghali - #8476 : crash due to signal 0000006 after deletion of table of contens item

scribus-commit scribus-commit at lists.scribus.net
Wed Sep 30 13:35:15 CEST 2009


Revision: 14070
Author: jghali
Date: 2009-09-30T11:33:34.887948Z
Commit message: #8476 : crash due to signal 0000006 after deletion of table of contens item

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

Diffs:
Index: scribus/tocindexprefs.cpp
===================================================================
--- scribus/tocindexprefs.cpp	(revision 14069)
+++ scribus/tocindexprefs.cpp	(revision 14070)
@@ -190,6 +190,8 @@
 void TOCIndexPrefs::selectToC( int numberSelected )
 {
 	numSelected=numberSelected;
+	if (numSelected < 0)
+		return;
 	if (localToCSetupVector.isEmpty())
 		return;
 	if (localToCSetupVector.count()<numSelected)




More information about the scribus-commit mailing list