r22816 by jghali - Remove unnecessary call to image property tab method in scripter's setScaleImageToFrame
scribus-commit
scribus-commit at lists.scribus.net
Wed Jan 23 20:42:28 UTC 2019
Author: jghali
Date: Wed Jan 23 20:42:27 2019
New Revision: 22816
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22816
Log:
Remove unnecessary call to image property tab method in scripter's setScaleImageToFrame
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22816&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp Wed Jan 23 20:42:27 2019
@@ -577,14 +577,10 @@
// set it. 1 is proportional, 0 is free aspect.
if (proportional != -1)
item->AspectRatio = proportional > 0;
- // Force the braindead app to notice the changes
-
- //FIXME emit or something so we dont need this
- ScCore->primaryMainWindow()->propertiesPalette->imagePal->showScaleAndOffset(item->imageXScale(), item->imageYScale(), item->imageXOffset(), item->imageYOffset());
+
item->AdjustPictScale();
- //ScCore->primaryMainWindow()->view->AdjustPictScale(item);
-
item->update();
+
Py_RETURN_NONE;
}
PyObject *scribus_flipobject(PyObject* /* self */, PyObject* args)
More information about the scribus-commit
mailing list