diff options
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 8c64f35d28ca..b7c8c51eb360 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -869,10 +869,12 @@ String SfxObjectShell::GetTitle return X(pImp->aTitle); // must it be numbered? - String aNoName( SfxResId( STR_NONAME ) ); - if ( pImp->bIsNamedVisible ) + rtl::OUString aNoName(ResId::toString(SfxResId(STR_NONAME))); + if (pImp->bIsNamedVisible) + { // Append number - aNoName += String::CreateFromInt32( pImp->nVisualDocumentNumber ); + aNoName += rtl::OUString::valueOf(static_cast<sal_Int32>(pImp->nVisualDocumentNumber)); + } // Document called "noname" for the time being return X(aNoName); |