r24604 by jghali - Minor optimization

scribus-commit scribus-commit at lists.scribus.net
Tue Apr 6 21:03:27 UTC 2021


Author: jghali
Date: Tue Apr  6 21:03:26 2021
New Revision: 24604

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24604
Log:
Minor optimization

Modified:
    trunk/Scribus/scribus/scribusview.cpp

Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24604&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp	(original)
+++ trunk/Scribus/scribus/scribusview.cpp	Tue Apr  6 21:03:26 2021
@@ -883,11 +883,11 @@
 				continue;
 			if ((m_doc->masterPageMode())  && (!((item->OwnPage == -1) || (item->OwnPage == m_doc->currentPage()->pageNr()))))
 				continue;
-			if ((m_canvas->frameHitTest(dropPosDocQ, m_doc->Items->at(i)) >= Canvas::INSIDE) && (m_doc->Items->at(i)->itemType() == PageItem::Symbol))
+			if ((m_canvas->frameHitTest(dropPosDocQ, item) >= Canvas::INSIDE) && (item->itemType() == PageItem::Symbol))
 			{
 				deselectItems(false);
-				m_doc->m_Selection->addItem(m_doc->Items->at(i));
-				m_doc->Items->at(i)->setPattern(patternVal);
+				m_doc->m_Selection->addItem(item);
+				item->setPattern(patternVal);
 				selectedItemByDrag = true;
 				break;
 			}




More information about the scribus-commit mailing list