r24212 by jghali - Fix deprecation warning

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 8 19:00:00 UTC 2020


Author: jghali
Date: Sun Nov  8 19:00:00 2020
New Revision: 24212

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24212
Log:
Fix deprecation warning

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24212&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Sun Nov  8 19:00:00 2020
@@ -2642,7 +2642,7 @@
 		ss->set("PAGE_SWAP_TO", b);
 		m_undoManager->action(this, ss);
 	}
-	Pages->swap(a,b);
+	Pages->swapItemsAt(a, b);
 	reformPages();
 	changed();
 }
@@ -2653,9 +2653,9 @@
 	int b = ss->getInt("PAGE_SWAP_TO");
 
 	if (isUndo)
-		swapPage(b,a);
+		swapPage(b, a);
 	else
-		swapPage(a,b);
+		swapPage(a, b);
 }
 
 void ScribusDoc::movePage(int fromPage, int toPage, int dest, int position)




More information about the scribus-commit mailing list