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

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 6 17:23:55 CET 2011


Author: craig
Date: Sun Mar  6 16:23:55 2011
New Revision: 16415

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

Modified:
    branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp

Modified: branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16415&path=/branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (original)
+++ branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp Sun Mar  6 16:23:55 2011
@@ -224,7 +224,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