r20401 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sat Sep 19 10:10:42 UTC 2015
Author: jghali
Date: Sat Sep 19 10:10:42 2015
New Revision: 20401
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20401
Log:
#13355, first part: Text effects only retain on first line when you reopen a document
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20401&path=/trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp Sat Sep 19 10:10:42 2015
@@ -2703,8 +2703,10 @@
pstyle.charStyle().setStrikethruOffset(qRound(attrs.valueAsDouble("TXTSTP") * 10));
if (attrs.hasAttribute("TXTSTW"))
pstyle.charStyle().setStrikethruWidth(qRound(attrs.valueAsDouble("TXTSTW") * 10));
- if (attrs.hasAttribute("TXTSTYLE"))
+ if (attrs.hasAttribute("TXTSTYLE")) // Pre 1.4.x attribute, not used in 1.4.x
pstyle.charStyle().setFeatures(static_cast<StyleFlag>(attrs.valueAsInt("TXTSTYLE")).featureList());
+ if (attrs.hasAttribute("TXTFEATURES")) // Added to fix issue #13355
+ pstyle.charStyle().setFeatures(attrs.valueAsString("TXTFEATURES").split(" ", QString::SkipEmptyParts));
if (attrs.hasAttribute("TXTKERN"))
pstyle.charStyle().setTracking(qRound(attrs.valueAsDouble("TXTKERN", 0.0) * 10));
if (attrs.hasAttribute("wordTrack"))
More information about the scribus-commit
mailing list