r20058 by jghali - #12860: additional fix
scribus-commit
scribus-commit at lists.scribus.net
Wed May 6 22:40:12 UTC 2015
Author: jghali
Date: Wed May 6 22:40:12 2015
New Revision: 20058
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20058
Log:
#12860: additional fix
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20058&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Wed May 6 22:40:12 2015
@@ -6436,8 +6436,15 @@
view->Deselect(true);
if (!doc->symbolEditMode() && !doc->inlineEditMode())
{
- if ((ite->OwnPage != -1) && (ite->OwnPage != static_cast<int>(doc->currentPage()->pageNr())))
- view->GotoPage(ite->OwnPage);
+ int itemPage = ite->OwnPage;
+ PageItem* parentItem = ite->Parent;
+ while (parentItem && parentItem->isGroup())
+ {
+ itemPage = parentItem->OwnPage;
+ parentItem = parentItem->Parent;
+ }
+ if ((itemPage != -1) && (itemPage != static_cast<int>(doc->currentPage()->pageNr())))
+ view->GotoPage(itemPage);
}
doc->m_Selection->delaySignalsOn();
view->SelectItem(ite, true, single);
More information about the scribus-commit
mailing list