r24591 by jghali - Minor optimization
scribus-commit
scribus-commit at lists.scribus.net
Fri Mar 26 21:49:47 UTC 2021
Author: jghali
Date: Fri Mar 26 21:49:47 2021
New Revision: 24591
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24591
Log:
Minor optimization
Modified:
trunk/Scribus/scribus/scribusdoc.cpp
Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24591&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Fri Mar 26 21:49:47 2021
@@ -6107,7 +6107,10 @@
if (item->isWelded())
weldedItems.append(item->itemsWeldedTo());
if (!weldedItems.contains(item))
- item->moveBy(-oldPg.oldXO + Pages->at(oldPg.newPg)->xOffset(), -oldPg.oldYO + Pages->at(oldPg.newPg)->yOffset());
+ {
+ const ScPage* oldPage = Pages->at(oldPg.newPg);
+ item->moveBy(-oldPg.oldXO + oldPage->xOffset(), -oldPg.oldYO + oldPage->yOffset());
+ }
item->OwnPage = static_cast<int>(oldPg.newPg);
if (item->isGroup())
{
More information about the scribus-commit
mailing list