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>
This commit is contained in:
parent
7d95908975
commit
5426a14e39
1 changed files with 7 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue