r24020 by jghali - #16240: Fix loop counter (py2x scripter)

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 15 21:26:26 UTC 2020


Author: jghali
Date: Tue Sep 15 21:26:26 2020
New Revision: 24020

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24020
Log:
#16240: Fix loop counter (py2x scripter)

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24020&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdobj.cpp	Tue Sep 15 21:26:26 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 PyString_FromString(nameList.toUtf8());




More information about the scribus-commit mailing list