Kaydet (Commit) 5426a14e authored tarafından Szymon Kłos's avatar Szymon Kłos

tdf#114677 Correct title in Base forms

Change-Id: I07bdb46cce88e876583e1d4217dff3f77f2f3814
Reviewed-on: https://gerrit.libreoffice.org/48801Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst 7d959089
...@@ -973,11 +973,14 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace ) ...@@ -973,11 +973,14 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace )
{ {
std::locale aResLoc = Translate::Create("sfx"); std::locale aResLoc = Translate::Create("sfx");
OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc); OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc);
xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded); if( !m_pEmbedObj->getContainerName().isEmpty() )
{
xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded );
m_aContainerName = m_pEmbedObj->getContainerName(); m_aContainerName = m_pEmbedObj->getContainerName();
// TODO: get real m_aDocumentNamePart // TODO: get real m_aDocumentNamePart
m_aDocumentNamePart = sEmbedded; m_aDocumentNamePart = sEmbedded;
} }
}
if ( bInPlace ) if ( bInPlace )
aArgs.put( "PluginMode", sal_Int16(1) ); aArgs.put( "PluginMode", sal_Int16(1) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment