r20820 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 23:25:56 UTC 2016


Author: jghali
Date: Sat Jan 30 23:25:56 2016
New Revision: 20820

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20820
Log:
coverity #1350082: copy-paste error

Modified:
    trunk/Scribus/scribus/plugins/export/xpsexport/xpsexplugin.cpp

Modified: trunk/Scribus/scribus/plugins/export/xpsexport/xpsexplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20820&path=/trunk/Scribus/scribus/plugins/export/xpsexport/xpsexplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/export/xpsexport/xpsexplugin.cpp	(original)
+++ trunk/Scribus/scribus/plugins/export/xpsexport/xpsexplugin.cpp	Sat Jan 30 23:25:56 2016
@@ -1596,7 +1596,7 @@
 		if (charStyle.effects() & ScStyle_Strikethrough)
 		{
 			double st, lw;
-			if ((charStyle.strikethruOffset() != -1) || (charStyle.underlineWidth() != -1))
+			if ((charStyle.strikethruOffset() != -1) || (charStyle.strikethruWidth() != -1))
 			{
 				if (charStyle.strikethruOffset() != -1)
 					st = (charStyle.strikethruOffset() / 1000.0) * (charStyle.font().ascent(charStyle.fontSize() / 10.0));




More information about the scribus-commit mailing list