r24019 by craig - #16240: Fix loop counter
scribus-commit
scribus-commit at lists.scribus.net
Tue Sep 15 21:22:29 UTC 2020
Author: craig
Date: Tue Sep 15 21:22:29 2020
New Revision: 24019
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24019
Log:
#16240: Fix loop counter
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24019&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp Tue Sep 15 21:22:29 2020
@@ -882,7 +882,7 @@
for (int i = 0; i < docSelectionCount; ++i)
{
nameList.append(currentDoc->m_Selection->itemAt(i)->itemName());
- if (i < docSelectionCount)
+ if (i < docSelectionCount - 1)
nameList.append(",");
}
return PyUnicode_FromString(nameList.toUtf8());
More information about the scribus-commit
mailing list