r23902 by jghali - #16144: Cycling through items in a group with alt-ctrl
scribus-commit
scribus-commit at lists.scribus.net
Wed Jun 24 23:20:19 UTC 2020
Author: jghali
Date: Wed Jun 24 23:20:19 2020
New Revision: 23902
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23902
Log:
#16144: Cycling through items in a group with alt-ctrl
Modified:
trunk/Scribus/scribus/canvas.cpp
Modified: trunk/Scribus/scribus/canvas.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23902&path=/trunk/Scribus/scribus/canvas.cpp
==============================================================================
--- trunk/Scribus/scribus/canvas.cpp (original)
+++ trunk/Scribus/scribus/canvas.cpp Wed Jun 24 23:20:19 2020
@@ -464,10 +464,11 @@
if (m_doc->Items->count() == 0)
return nullptr;
- int currNr = itemAbove ? m_doc->Items->indexOf(itemAbove)-1 : m_doc->Items->count()-1;
+ QList<PageItem*> *itemList = (itemAbove && itemAbove->isGroupChild()) ? &itemAbove->parentGroup()->groupItemList : m_doc->Items;
+ int currNr = itemAbove ? itemList->indexOf(itemAbove) - 1 : itemList->count() - 1;
while (currNr >= 0)
{
- currItem = m_doc->Items->at(currNr);
+ currItem = itemList->at(currNr);
if ((m_doc->masterPageMode()) && (!((currItem->OwnPage == -1) || (currItem->OwnPage == static_cast<int>(m_doc->currentPage()->pageNr())))))
{
--currNr;
More information about the scribus-commit
mailing list