sw/source/ui/misc/outline.cxx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
New commits: commit a7b79f7e1ac4aa1dc4744dced45903f9ecc7f351 Author: Andreas Heinisch <andreas.heini...@yahoo.de> AuthorDate: Mon Apr 3 09:20:13 2023 +0200 Commit: Andreas Heinisch <andreas.heini...@yahoo.de> CommitDate: Mon Apr 3 15:20:08 2023 +0200 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.heini...@yahoo.de> diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index d72a003db02e..429cfb71915c 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() )