r21500 by jghali - #14347: PP displays incorrect numerated list informations

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 7 13:27:10 UTC 2016


Author: jghali
Date: Mon Nov  7 13:27:10 2016
New Revision: 21500

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21500
Log:
#14347: PP displays incorrect numerated list informations

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21500&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Mon Nov  7 13:27:10 2016
@@ -1579,7 +1579,10 @@
 
 void PageItem::currentTextProps(ParagraphStyle& parStyle) const
 {
-	parStyle = this->currentStyle();
+	const ParagraphStyle& curStyle = this->currentStyle();
+	parStyle.setContext(curStyle.context());
+	parStyle = curStyle;
+
 	int position = itemText.cursorPosition();
 	if (itemText.lengthOfSelection() > 0)
 		position = qMin(qMax(itemText.endOfSelection() - 1, 0), qMax(position, itemText.startOfSelection()));




More information about the scribus-commit mailing list