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

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


Revision: 14071
Author: jghali
Date: 2009-09-30T11:34:25.528746Z
Commit message: #8476 : crash due to signal 0000006 after deletion of table of contents item

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

Diffs:
Index: scribus/ui/tocindexprefs.cpp
===================================================================
--- scribus/ui/tocindexprefs.cpp	(revision 14070)
+++ scribus/ui/tocindexprefs.cpp	(revision 14071)
@@ -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