r25106 by jghali - #16809: Scripter crashes with getAllObjects() on a master page <william>
scribus-commit
scribus-commit at lists.scribus.net
Tue Jun 14 12:39:07 UTC 2022
Author: jghali
Date: Tue Jun 14 12:39:07 2022
New Revision: 25106
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=25106
Log:
#16809: Scripter crashes with getAllObjects() on a master page <william>
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=25106&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp Tue Jun 14 12:39:07 2022
@@ -374,7 +374,7 @@
return true;
};
- int returnedItemCount = std::count_if(currentDoc->DocItems.begin(), currentDoc->DocItems.end(), isReturnedItem);
+ int returnedItemCount = std::count_if(currentDoc->Items->begin(), currentDoc->Items->end(), isReturnedItem);
PyObject* pyItemList = PyList_New(returnedItemCount);
for (int i = 0; i < currentDoc->Items->count(); ++i)
More information about the scribus-commit
mailing list