r21061 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 5 20:07:29 UTC 2016


Author: jghali
Date: Sat Mar  5 20:07:29 2016
New Revision: 21061

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21061
Log:
#13792: Automatic numbering ignores charcter style in first paragraph

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21061&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Sat Mar  5 20:07:29 2016
@@ -5652,9 +5652,11 @@
 			newItem->setFillShade(m_docPrefsData.itemToolPrefs.textFillColorShade);
 			newItem->setLineColor(m_docPrefsData.itemToolPrefs.textLineColor);
 			newItem->setLineShade(m_docPrefsData.itemToolPrefs.textLineColorShade);
-			defaultParagraphStyle.setParent(CommonStrings::DefaultParagraphStyle);
+			// 13792 : Commented out because this trigger the first line of a text frame having
+			// default character style explictly assigned, which we don't want
+			/*defaultParagraphStyle.setParent(CommonStrings::DefaultParagraphStyle);
 			defaultParagraphStyle.charStyle().setParent(CommonStrings::DefaultCharacterStyle);
-			newItem->itemText.setDefaultStyle(defaultParagraphStyle);
+			newItem->itemText.setDefaultStyle(defaultParagraphStyle);*/
 			break;
 		case PageItem::Line:
 			newItem->PLineArt = Qt::PenStyle(m_docPrefsData.itemToolPrefs.lineStyle);




More information about the scribus-commit mailing list