summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-19 10:37:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-19 10:58:43 +0100
commit8461c405983bbb887fc05d0952d0b4312a02e2e2 (patch)
tree9fcb7ba7ec0a5227eb2ed2c36212af3d9c6c43bb /sd
parent4bcc515356e2a66417e36600bee9402efb2f9ec3 (diff)
aOldFullName and aFullName are both supposed to be prefixed the same
i.e. a2b86b5fb75925e7e8b24751f83e1ecc8584cf72 stuck the prefix onto aFullName twice by accident Change-Id: I3fdba4cf3dea77bad2278812d75788f175e8d221
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/sdpage2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx
index da7791db1845..77d6e61b0e87 100644
--- a/sd/source/core/sdpage2.cxx
+++ b/sd/source/core/sdpage2.cxx
@@ -161,11 +161,10 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName,
for (sal_Int16 i = -1; i < 9; i++)
{
- aOldFullName = aOldLayoutName;
- aFullName = maLayoutName + " " +
- OUString::number( (sal_Int32) (i <= 0 ) ? 1 : i + 1) +
- " " +
+ aOldFullName = aOldLayoutName + " " +
OUString::number( (sal_Int32) (i <= 0 ) ? 1 : i + 1 );
+ aFullName = maLayoutName + " " +
+ OUString::number( (sal_Int32) (i <= 0 ) ? 1 : i + 1);
pSheet = pStShPool->Find(aOldFullName, SD_STYLE_FAMILY_MASTERPAGE);
DBG_ASSERT(pSheet, "Old outline style sheet not found");
aOldOutlineStyles.push_back(pSheet);