r20819 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 23:22:10 UTC 2016


Author: jghali
Date: Sat Jan 30 23:22:10 2016
New Revision: 20819

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

Modified:
    trunk/Scribus/scribus/prefsmanager.cpp

Modified: trunk/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20819&path=/trunk/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/prefsmanager.cpp	(original)
+++ trunk/Scribus/scribus/prefsmanager.cpp	Sat Jan 30 23:22:10 2016
@@ -2065,7 +2065,7 @@
 				appPrefs.typoPrefs.valueUnderlineWidth = -1;
 			double stp = ScCLocale::toDoubleC(dc.attribute("StrikeThruDistance"), -1.0);
 			if (stp != -1)
-				appPrefs.typoPrefs.valueStrikeThruPos = qRound(ulp * 10);
+				appPrefs.typoPrefs.valueStrikeThruPos = qRound(stp * 10);
 			else
 				appPrefs.typoPrefs.valueStrikeThruPos = -1;
 			double stw = ScCLocale::toDoubleC(dc.attribute("StrikeThruWidth"), -1.0);




More information about the scribus-commit mailing list