r23200 by jghali - #15820: Last page is not movable in "Arrange Pages" palette

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 17 15:00:42 UTC 2019


Author: jghali
Date: Tue Sep 17 15:00:42 2019
New Revision: 23200

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23200
Log:
#15820: Last page is not movable in "Arrange Pages" palette

Modified:
    trunk/Scribus/scribus/ui/pagepalette_pages.cpp

Modified: trunk/Scribus/scribus/ui/pagepalette_pages.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23200&path=/trunk/Scribus/scribus/ui/pagepalette_pages.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/pagepalette_pages.cpp	(original)
+++ trunk/Scribus/scribus/ui/pagepalette_pages.cpp	Tue Sep 17 15:00:42 2019
@@ -135,7 +135,7 @@
 
 void PagePalette_Pages::pageView_movePage(int r, int c)
 {
-	if (r == c || r == pageView->m_pageCount - 1)
+	if ((r == c) || (r >= pageView->m_pageCount))
 		return;
 	if (c >= pageView->m_pageCount)
 		currView->Doc->movePage(r, r + 1, c, 2);




More information about the scribus-commit mailing list