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