r19333 by jghali - #12506: Page assigned "Empty" master page after changing from Single Page to Double Page layout

scribus-commit scribus-commit at lists.scribus.net
Thu Jul 10 21:37:36 UTC 2014


Author: jghali
Date: Thu Jul 10 21:37:36 2014
New Revision: 19333

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19333
Log:
#12506: Page assigned "Empty" master page after changing from Single Page to Double Page layout

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

Modified: trunk/Scribus/scribus/ui/inspage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19333&path=/trunk/Scribus/scribus/ui/inspage.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/inspage.cpp (original)
+++ trunk/Scribus/scribus/ui/inspage.cpp Thu Jul 10 21:37:36 2014
@@ -98,6 +98,8 @@
 				{
 					if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
 						pageData->addItem(CommonStrings::trMasterPageNormal);
+					else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
+						pageData->addItem(CommonStrings::trMasterPageNormal);
 					else
 					{
 						if (currentDoc->MasterPages.at(it.value())->LeftPg == 1)
@@ -116,6 +118,8 @@
 					{
 						if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
 							pageData->addItem(CommonStrings::trMasterPageNormal);
+						else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
+							pageData->addItem(CommonStrings::trMasterPageNormal);
 						else
 						{
 							if ((currentDoc->MasterPages.at(it.value())->LeftPg != 0) && (currentDoc->MasterPages.at(it.value())->LeftPg != 1))
@@ -132,6 +136,8 @@
 					{
 						if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
 							pageData->addItem(CommonStrings::trMasterPageNormal);
+						else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
+							pageData->addItem(CommonStrings::trMasterPageNormal);
 						else
 						{
 							if (currentDoc->MasterPages.at(it.value())->LeftPg == 0)
@@ -151,6 +157,8 @@
 					{
 						if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
 							pageData->addItem(CommonStrings::trMasterPageNormal);
+						else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
+							pageData->addItem(CommonStrings::trMasterPageNormal);
 						else
 						{
 							if ((currentDoc->MasterPages.at(it.value())->LeftPg != 0) && (currentDoc->MasterPages.at(it.value())->LeftPg != 1))
@@ -167,6 +175,8 @@
 					{
 						if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
 							pageData->addItem(CommonStrings::trMasterPageNormal);
+						else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
+							pageData->addItem(CommonStrings::trMasterPageNormal);
 						else
 						{
 							if (currentDoc->MasterPages.at(it.value())->LeftPg == 0)
@@ -183,6 +193,8 @@
 				for (QMap<QString,int>::Iterator it = currentDoc->MasterNames.begin(); it != currentDoc->MasterNames.end(); ++it)
 				{
 					if ((it.key() == CommonStrings::masterPageNormal) && (!conNam))
+						pageData->addItem(CommonStrings::trMasterPageNormal);
+					else if ((it.key() == CommonStrings::trMasterPageNormal) && (!conNam))
 						pageData->addItem(CommonStrings::trMasterPageNormal);
 					else
 					{




More information about the scribus-commit mailing list