r24191 by jghali - Fix picture browser not iterating over correct item list when used in masterpage mode

scribus-commit scribus-commit at lists.scribus.net
Fri Nov 6 14:03:34 UTC 2020


Author: jghali
Date: Fri Nov  6 14:03:33 2020
New Revision: 24191

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24191
Log:
Fix picture browser not iterating over correct item list when used in masterpage mode

Modified:
    trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp

Modified: trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24191&path=/trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp	(original)
+++ trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.cpp	Fri Nov  6 14:03:33 2020
@@ -197,9 +197,9 @@
 
 	PageItem *pItem;
 	QList<PageItem*> allItems;
-	for (int a = 0; a < m_Doc->MasterItems.count(); ++a)
-	{
-		PageItem *currItem = m_Doc->MasterItems.at(a);
+	for (int i = 0; i < m_Doc->MasterItems.count(); ++i)
+	{
+		PageItem *currItem = m_Doc->MasterItems.at(i);
 		if (currItem->isGroup())
 			allItems = currItem->getAllChildren();
 		else
@@ -220,9 +220,9 @@
 		allItems.clear();
 	}
 
-	for (int a = 0; a < m_Doc->Items->count(); ++a)
-	{
-		PageItem *currItem = m_Doc->Items->at(a);
+	for (int i = 0; i < m_Doc->DocItems.count(); ++i)
+	{
+		PageItem *currItem = m_Doc->DocItems.at(i);
 		if (currItem->isGroup())
 			allItems = currItem->getAllChildren();
 		else




More information about the scribus-commit mailing list