r23004 by jghali - Fix potential hang in text layout caused by improper initialization of document section

scribus-commit scribus-commit at lists.scribus.net
Fri Jun 7 02:40:58 UTC 2019


Author: jghali
Date: Fri Jun  7 02:40:58 2019
New Revision: 23004

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23004
Log:
Fix potential hang in text layout caused by improper initialization of document section

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=23004&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:40:58 2019
@@ -202,6 +202,7 @@
 		blank.sectionstartindex = 1;
 		blank.reversed = false;
 		blank.active = true;
+		blank.pageNumberWidth = 0;
 		m_localSections.insert(count, blank);
 	}
 	else
@@ -227,6 +228,7 @@
 				blank.sectionstartindex = 1;
 				blank.reversed = false;
 				blank.active = true;
+				blank.pageNumberWidth = 0;
 				m_localSections.insert(i, blank);
 			}
 			++i;




More information about the scribus-commit mailing list