r25105 by jghali - #16809: Scripter crashes with getAllObjects() on a master page
scribus-commit
scribus-commit at lists.scribus.net
Tue Jun 14 12:38:32 UTC 2022
Author: jghali
Date: Tue Jun 14 12:38:32 2022
New Revision: 25105
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=25105
Log:
#16809: Scripter crashes with getAllObjects() on a master page
Modified:
branches/Version15x/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
Modified: branches/Version15x/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=25105&path=/branches/Version15x/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- branches/Version15x/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (original)
+++ branches/Version15x/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp Tue Jun 14 12:38:32 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