r20950 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Tue Feb 9 16:48:42 UTC 2016
Author: craig
Date: Tue Feb 9 16:48:42 2016
New Revision: 20950
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20950
Log:
coverity #1350127: 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=20950&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Tue Feb 9 16:48:42 2016
@@ -16464,6 +16464,8 @@
QString ScribusDoc::getNumberStr(QString numName, int level, bool reset, ParagraphStyle &style)
{
Q_ASSERT(numerations.contains(numName));
+ if (!numerations.contains(numName))
+ return QString();
NumStruct * numS = numerations.value(numName);
numS->m_lastlevel = level;
More information about the scribus-commit
mailing list