r23005 by jghali - Fix incorrect initialization of page numbers when adding a section to a document

scribus-commit scribus-commit at lists.scribus.net
Fri Jun 7 02:45:00 UTC 2019


Author: jghali
Date: Fri Jun  7 02:45:00 2019
New Revision: 23005

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23005
Log:
Fix incorrect initialization of page numbers when adding a section to a document

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

Modified: trunk/Scribus/scribus/ui/prefs_documentsections.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23005&path=/trunk/Scribus/scribus/ui/prefs_documentsections.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsections.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_documentsections.cpp	Fri Jun  7 02:45:00 2019
@@ -222,8 +222,8 @@
 				struct DocumentSection blank;
 				blank.number = ++i;
 				blank.name = QString::number(i);
-				blank.fromindex = it->toindex+1+1;
-				blank.toindex = it->toindex+2+1;
+				blank.fromindex = it->toindex+1;
+				blank.toindex = it->toindex+2;
 				blank.type = Type_1_2_3;
 				blank.sectionstartindex = 1;
 				blank.reversed = false;




More information about the scribus-commit mailing list