r13820 by jghali - #8321 : wrong master page is copied after creating/duplicating new master page

scribus-commit scribus-commit at lists.scribus.net
Fri Aug 7 23:00:15 CEST 2009


Revision: 13820
Author: jghali
Date: 2009-08-07T20:56:02.197732Z
Commit message: #8321 : wrong master page is copied after creating/duplicating new master page

Changeset: 
M  /trunk/Scribus/scribus/ui/masterpagepalette.cpp

Diffs:
Index: scribus/ui/masterpagepalette.cpp
===================================================================
--- scribus/ui/masterpagepalette.cpp	(revision 13819)
+++ scribus/ui/masterpagepalette.cpp	(revision 13820)
@@ -248,7 +248,9 @@
 				destination->initialMargins.Right = from->initialMargins.Right;
 			}
 		}
-		currentDoc->setCurrentPage(destination);
+		//#8321 : incorrect selection of master page on new mp creation/duplictation
+		//currentDoc->setCurrentPage(destination);
+		selectMasterPage(MasterPageName);
 		uint oldItems = currentDoc->Items->count();
 		uint end2 = currentDoc->MasterItems.count();
 		int GrMax = currentDoc->GroupCounter;
@@ -332,7 +334,9 @@
 			currentDoc->Pages->at(nr)->LeftPg = lp;
 		}
 		updateMasterPageList(MasterPageName);
-		currentView->showMasterPage(currentDoc->MasterNames[MasterPageName]);
+		//#8321 : incorrect selection of master page on new mp creation/duplictation
+		//currentView->showMasterPage(currentDoc->MasterNames[MasterPageName]);
+		selectMasterPage(MasterPageName);
 		currentView->reformPages();
 	}
 	delete dia;




More information about the scribus-commit mailing list