r24425 by jghali - Fix potential issue when updating list numbers

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 24 19:50:42 UTC 2021


Author: jghali
Date: Sun Jan 24 19:50:42 2021
New Revision: 24425

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24425
Log:
Fix potential issue when updating list numbers

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24425&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Sun Jan 24 19:50:42 2021
@@ -16737,6 +16737,7 @@
 						itemSelection_ApplyParagraphStyle(newStyle, &tempSelection);
 						continue;
 					}
+
 					Mark* mark = item->itemText.mark(pos);
 					NumStruct* numStyle = numerations.value(style.numName());
 					bool resetNums = false;
@@ -16760,6 +16761,7 @@
 						item->itemText.insertMark(bnMark, pos);
 						CharStyle emptyCS;
 						item->itemText.setCharStyle(pos, 1, emptyCS);
+						mark = item->itemText.mark(pos);
 					}
 					if (mark && mark->getString() != prefixStr)
 					{




More information about the scribus-commit mailing list