r21345 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Sat May 21 09:05:47 UTC 2016


Author: fschmid
Date: Sat May 21 09:05:47 2016
New Revision: 21345

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21345
Log:
Fixed Bug #11642: Crash when opening document after editing enum style

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21345&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Sat May 21 09:05:47 2016
@@ -16451,7 +16451,8 @@
 		return QString();
 	NumStruct * numS = numerations.value(numName);
 	numS->m_lastlevel = level;
-
+	if (level >= numS->m_nums.count())
+		return QString();
 	Numeration num = numS->m_nums[level];
 	num.numFormat = (NumFormat) style.numFormat();
 	num.start = style.numStart();




More information about the scribus-commit mailing list