View | Details | Raw Unified | Return to issue 119902
Collapse All | Expand All

(-)sd/source/ui/docshell/docshel4.cxx (+13 lines)
Lines 948-953 Link Here
948
		{
948
		{
949
			String aOldPageLayoutName = mpDoc->GetSdPage(0, PK_STANDARD)->GetLayoutName();
949
			String aOldPageLayoutName = mpDoc->GetSdPage(0, PK_STANDARD)->GetLayoutName();
950
			mpDoc->RenameLayoutTemplate(aOldPageLayoutName, aLayoutName);
950
			mpDoc->RenameLayoutTemplate(aOldPageLayoutName, aLayoutName);
951
952
			// Rename all standard master page name
953
			sal_uInt32 nCount = mpDoc->GetMasterSdPageCount(PK_STANDARD);
954
			for(sal_uInt32 i = 0; i < nCount; i++)
955
			{
956
				String aOldPageLayoutName = mpDoc->GetMasterSdPage(i, PK_STANDARD)->GetLayoutName();
957
				String aNewLayoutName = aLayoutName;
958
				// Don't add suffix for the first master page
959
				if( i > 0 )				
960
					aNewLayoutName += String::CreateFromInt32(i);				
961
				
962
				mpDoc->RenameLayoutTemplate(aOldPageLayoutName, aNewLayoutName);
963
			}			
951
		}
964
		}
952
	}
965
	}
953
966

Return to issue 119902