r20821 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 23:27:42 UTC 2016


Author: jghali
Date: Sat Jan 30 23:27:42 2016
New Revision: 20821

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20821
Log:
coverity #1350081: 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=20821&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:27:42 2016
@@ -1310,7 +1310,7 @@
 				if (txItem.style.effects() & ScStyle_Strikethrough)
 				{
 					double st, lw;
-					if ((txItem.style.strikethruOffset() != -1) || (txItem.style.underlineWidth() != -1))
+					if ((txItem.style.strikethruOffset() != -1) || (txItem.style.strikethruWidth() != -1))
 					{
 						if (txItem.style.strikethruOffset() != -1)
 							st = (txItem.style.strikethruOffset() / 1000.0) * (txItem.style.font().ascent(txItem.style.fontSize() / 10.0));




More information about the scribus-commit mailing list