r20588 by gpittman -

scribus-commit scribus-commit at lists.scribus.net
Thu Nov 26 23:01:20 UTC 2015


Author: gpittman
Date: Thu Nov 26 23:01:20 2015
New Revision: 20588

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20588
Log:
fixed getFontSize command in Scripter for decimal points

Added:
    trunk/Scribus/doc/de/scripterapi-extensions.html
Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20588&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	Thu Nov 26 23:01:20 2015
@@ -69,7 +69,7 @@
 		return NULL;
 	}
 	else
-		return PyFloat_FromDouble(static_cast<long>(it->currentCharStyle().fontSize() / 10.0));
+		return PyFloat_FromDouble(static_cast<double>(it->currentCharStyle().fontSize() / 10.0));
 }
 
 PyObject *scribus_getfont(PyObject* /* self */, PyObject* args)




More information about the scribus-commit mailing list