r22379 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 5 18:33:56 UTC 2018


Author: jghali
Date: Mon Feb  5 18:33:56 2018
New Revision: 22379

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22379
Log:
#15099, improve librevenge based import: fix meaning of style:text-scale <dtardon>

Modified:
    trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp

Modified: trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22379&path=/trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp	Mon Feb  5 18:33:56 2018
@@ -1634,8 +1634,8 @@
 		textCharStyle.setFontSize(valueAsPoint(propList["fo:font-size"]) * 10.0);
 		m_maxFontSize = qMax(m_maxFontSize, valueAsPoint(propList["fo:font-size"]));
 	}
-	if (propList["style:text-scale"])
-		textCharStyle.setFontSize(textCharStyle.fontSize() * fromPercentage(QString(propList["style:text-scale"]->getStr().cstr())));
+	if (propList["style:text-scale"] && propList["style:text-scale"]->getUnit() == librevenge::RVNG_PERCENT)
+		textCharStyle.setScaleH(propList["style:text-scale"]->getDouble() * 1000);
 	if (propList["style:font-name"])
 	{
 		QString fontVari;




More information about the scribus-commit mailing list