diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2018-01-28 18:18:32 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2018-01-29 09:46:46 +0100 |
commit | 5426a14e39660bde0dece27cf5ec26b9938bd962 (patch) | |
tree | 7b53ce93bea5bdbd97e77016e2d72c63abbbcdeb /embeddedobj | |
parent | 7d9590897526e26a3c0a7a90504741d4c21070f1 (diff) |
tdf#114677 Correct title in Base forms
Change-Id: I07bdb46cce88e876583e1d4217dff3f77f2f3814
Reviewed-on: https://gerrit.libreoffice.org/48801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 18fbd91641c8..d7c40a109a3d 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -973,10 +973,13 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace ) { std::locale aResLoc = Translate::Create("sfx"); OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc); - xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded); - m_aContainerName = m_pEmbedObj->getContainerName(); - // TODO: get real m_aDocumentNamePart - m_aDocumentNamePart = sEmbedded; + if( !m_pEmbedObj->getContainerName().isEmpty() ) + { + xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded ); + m_aContainerName = m_pEmbedObj->getContainerName(); + // TODO: get real m_aDocumentNamePart + m_aDocumentNamePart = sEmbedded; + } } if ( bInPlace ) |