r16526 by craig - #9757: Fix reading of font face and size from preferences

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 27 15:58:03 CEST 2011


Author: craig
Date: Sun Mar 27 13:58:02 2011
New Revision: 16526

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16526
Log:
#9757: Fix reading of font face and size from preferences

Modified:
    trunk/Scribus/scribus/prefsmanager.cpp

Modified: trunk/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16526&path=/trunk/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/prefsmanager.cpp (original)
+++ trunk/Scribus/scribus/prefsmanager.cpp Sun Mar 27 13:58:02 2011
@@ -2076,9 +2076,9 @@
 			appPrefs.itemToolPrefs.spiralStartAngle = ScCLocale::toDoubleC(dc.attribute("SpiralStartAngle"), 0.0);
 			appPrefs.itemToolPrefs.spiralEndAngle = ScCLocale::toDoubleC(dc.attribute("SpiralEndAngle"), 1080.0);
 			appPrefs.itemToolPrefs.spiralFactor = ScCLocale::toDoubleC(dc.attribute("SpiralFactor"), 1.2);
-			if (dc.hasAttribute("Face"))
+			if (dc.hasAttribute("FontFace"))
 			{
-				QString tmpf=dc.attribute("Face");
+				QString tmpf=dc.attribute("FontFace");
 				QString newFont = "";
 				if (!appPrefs.fontPrefs.AvailFonts.contains(tmpf) || !appPrefs.fontPrefs.AvailFonts[tmpf].usable())
 				{
@@ -2092,7 +2092,7 @@
 					newFont = tmpf;
 				if (!newFont.isEmpty())
 					appPrefs.itemToolPrefs.textFont = newFont;
-				appPrefs.itemToolPrefs.textSize = qRound( ScCLocale::toDoubleC(dc.attribute("SIZE"), 12.0) * 10.0 );
+				appPrefs.itemToolPrefs.textSize = qRound( ScCLocale::toDoubleC(dc.attribute("FontSize"), 12.0) * 10.0 );
 			}
 		}
 




More information about the scribus-commit mailing list