tdf#146312 - Chapter numbering dialog: show paragraph style [None] in preview
Change-Id: Icb576df2f0de255aba9fdfddad81b654a48c6c36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149948
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index d72a003..429cfb7 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -581,16 +581,11 @@ IMPL_LINK( SwOutlineSettingsTabPage, CollSelect, weld::ComboBox&, rBox, void )
for( i = 0; i < MAXLEVEL; ++i)
m_pCollNames[i] = m_aSaveCollNames[i];
if(aCollName == m_aNoFormatName)
m_pCollNames[nTmpLevel].clear();
else
{
m_pCollNames[nTmpLevel] = aCollName;
// template already in use?
for( i = 0; i < MAXLEVEL; ++i)
if(i != nTmpLevel && m_pCollNames[i] == aCollName )
m_pCollNames[i].clear();
}
m_pCollNames[nTmpLevel] = aCollName;
// template already in use?
for( i = 0; i < MAXLEVEL; ++i)
if(i != nTmpLevel && m_pCollNames[i] == aCollName )
m_pCollNames[i].clear();
// search the oldname and put it into the current entries
if( !sOldName.isEmpty() )