r23828 by jghali - Remove useless clear() call

scribus-commit scribus-commit at lists.scribus.net
Fri May 22 18:11:39 UTC 2020


Author: jghali
Date: Fri May 22 18:11:38 2020
New Revision: 23828

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23828
Log:
Remove useless clear() call

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23828&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Fri May 22 18:11:38 2020
@@ -16204,10 +16204,10 @@
 
 void ScribusDoc::checkItemForFrames(PageItem *it, int fIndex)
 {
+	if (!it->isTextFrame() && !it->isPathText())
+		return;
 	QList<int> deleteList;
-	deleteList.clear();
-	if (!it->isTextFrame() && !it->isPathText())
-		return;
+
 	int start = 0;
 	int stop  = it->itemText.length();
 	for (int e = start; e < stop; ++e)




More information about the scribus-commit mailing list