r16416 by craig - #9745: Apply Ale's patch for getImageScale()

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 6 17:25:00 CET 2011


Author: craig
Date: Sun Mar  6 16:25:00 2011
New Revision: 16416

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16416
Log:
#9745: Apply Ale's patch for getImageScale()

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16416&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp Sun Mar  6 16:25:00 2011
@@ -225,7 +225,7 @@
 	if(!checkHaveDocument())
 		return NULL;
 	PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
-	return i != NULL ? Py_BuildValue("(ff)", i->imageXScale(), i->imageYScale()) : NULL;
+	return i != NULL ? Py_BuildValue("(ff)", i->imageXScale() / 72.0 * i->pixm.imgInfo.xres, i->imageYScale() / 72.0 * i->pixm.imgInfo.yres) : NULL;
 }
 
 PyObject *scribus_getimgname(PyObject* /* self */, PyObject* args)




More information about the scribus-commit mailing list