r19359 by jghali - #12547: Duplicate/Save wrong when transparency is used
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 21 19:27:50 UTC 2014
Author: jghali
Date: Mon Jul 21 19:27:50 2014
New Revision: 19359
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19359
Log:
#12547: Duplicate/Save wrong when transparency is used
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19359&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 Mon Jul 21 19:27:50 2014
@@ -2854,12 +2854,9 @@
currItem->setLocked (attrs.valueAsBool("LOCK", false));
currItem->setSizeLocked(attrs.valueAsBool("LOCKR", false));
currItem->setFillTransparency(attrs.valueAsDouble("TransValue", 0.0));
+ currItem->setLineTransparency(attrs.valueAsDouble("TransValueS", 0.0));
currItem->fillRule = attrs.valueAsBool("fillRule", true);
currItem->doOverprint = attrs.valueAsBool("doOverprint", false);
- if (attrs.hasAttribute("TransValueS"))
- currItem->setLineTransparency(attrs.valueAsDouble("TransValueS", 0.0));
- else
- currItem->setLineTransparency(attrs.valueAsDouble("TransValue", 0.0));
currItem->setFillBlendmode(attrs.valueAsInt("TransBlend", 0));
currItem->setLineBlendmode(attrs.valueAsInt("TransBlendS", 0));
if (attrs.valueAsInt("TRANSPARENT", 0) == 1)
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19359&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Mon Jul 21 19:27:50 2014
@@ -5169,10 +5169,7 @@
currItem->fillRule = attrs.valueAsBool("fillRule", true);
currItem->doOverprint = attrs.valueAsBool("doOverprint", false);
currItem->setFillTransparency(attrs.valueAsDouble("TransValue", 0.0));
- if (attrs.hasAttribute("TransValueS"))
- currItem->setLineTransparency(attrs.valueAsDouble("TransValueS", 0.0));
- else
- currItem->setLineTransparency(attrs.valueAsDouble("TransValue", 0.0));
+ currItem->setLineTransparency(attrs.valueAsDouble("TransValueS", 0.0));
currItem->setFillBlendmode(attrs.valueAsInt("TransBlend", 0));
currItem->setLineBlendmode(attrs.valueAsInt("TransBlendS", 0));
if (attrs.valueAsInt("TRANSPARENT", 0) == 1)
More information about the scribus-commit
mailing list