diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 0f31e02b2d1b..a315330029c6 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -153,15 +153,6 @@ public: } -sal_uInt16 const aTitleMap_Impl[3][2] = -{ - // local remote - /* SFX_TITLE_CAPTION */ { SFX_TITLE_FILENAME, SFX_TITLE_TITLE }, - /* SFX_TITLE_PICKLIST */ { 32, SFX_TITLE_FULLNAME }, - /* SFX_TITLE_HISTORY */ { 32, SFX_TITLE_FULLNAME } -}; - - bool SfxObjectShell::IsAbortingImport() const { return pImpl->bIsAbortingImport; @@ -810,12 +801,10 @@ OUString SfxObjectShell::GetTitle( sal_uInt16 nMaxLength ) const const INetURLObject aURL( IsDocShared() ? GetSharedFileURL() : GetMedium()->GetName() ); if (nMaxLength == SFX_TITLE_PICKLIST || nMaxLength == SFX_TITLE_HISTORY) { - sal_uInt16 nRemote; if (aURL.GetProtocol() == INetProtocol::File) - nRemote = 0; + nMaxLength = 32; else - nRemote = 1; - nMaxLength = aTitleMap_Impl[nMaxLength-SFX_TITLE_CAPTION][nRemote]; + nMaxLength = SFX_TITLE_FULLNAME; } // Local file?