r21808 by jghali - #14660: "Ghost" entry in page size combo in the Document Setup

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 4 10:09:20 UTC 2017


Author: jghali
Date: Sat Mar  4 10:09:20 2017
New Revision: 21808

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21808
Log:
#14660: "Ghost" entry in page size combo in the Document Setup

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

Modified: trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21808&path=/trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsetup.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_documentsetup.cpp	Sat Mar  4 10:09:20 2017
@@ -268,7 +268,9 @@
 	QStringList insertTrList(ps.activeSizeTRList());
 
 	prefsPageSizeName = prefsData->docSetupPrefs.pageSize;
-	if (insertList.indexOf(prefsPageSizeName) ==-1)
+	if ((prefsPageSizeName != CommonStrings::customPageSize) &&
+		(prefsPageSizeName != CommonStrings::trCustomPageSize) &&
+		(insertList.indexOf(prefsPageSizeName) == -1))
 	{
 		insertList << prefsPageSizeName;
 		insertTrList << prefsPageSizeName;




More information about the scribus-commit mailing list