r20951 by craig -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 9 16:49:43 UTC 2016


Author: craig
Date: Tue Feb  9 16:49:43 2016
New Revision: 20951

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20951
Log:
coverity #1350124: explicit null dereferenced

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20951&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Tue Feb  9 16:49:43 2016
@@ -16495,6 +16495,8 @@
 
 void ScribusDoc::setNumerationCounter(QString numName, int level, int number)
 {
+	if (!numerations.contains(numName))
+		return;
 	NumStruct * numS = numerations.value(numName);
 	if (level > numS->m_counters.count())
 		numS->m_counters.insert(level, number);




More information about the scribus-commit mailing list