summaryrefslogtreecommitdiff
path: root/sc/source/core/data/docpool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/docpool.cxx')
-rw-r--r--sc/source/core/data/docpool.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index e7f008c7bc87..f3001a5a6b8c 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -916,8 +916,8 @@ SfxItemPresentation ScDocumentPool::GetPresentation(
// break; // DURCHFALLEN!!!
case SFX_ITEM_PRESENTATION_NAMELESS:
{
- String aPages( ScGlobal::GetRscString( STR_SCATTR_PAGE_SCALE_PAGES ) );
- aPages.SearchAndReplaceAscii( "%1", OUString::number( nPagNo ) );
+ OUString aPages( ScGlobal::GetRscString( STR_SCATTR_PAGE_SCALE_PAGES ) );
+ aPages = aPages.replaceFirst( "%1", OUString::number( nPagNo ) );
rText += aPages;
}
break;