sw/source/core/text/txtfld.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5de53775531a358c6775d265a3a19699c96a8139
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Wed Nov 22 12:05:14 2023 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Wed Dec 6 15:24:57 2023 +0100

    tdf#154369 don't apply default items to numbering symbols
    
    default attributes from the CharFmt should no be applied to the
    numbering symbol
    
    Change-Id: Ifa2d2ace575b888a43fa948f3b71605cfe20f129
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159817
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/sw/source/core/text/txtfld.cxx b/sw/source/core/text/txtfld.cxx
index 2cffd26eeef7..84f32e30971f 100644
--- a/sw/source/core/text/txtfld.cxx
+++ b/sw/source/core/text/txtfld.cxx
@@ -351,7 +351,8 @@ static void 
checkApplyParagraphMarkFormatToNumbering(SwFont* pNumFnt, SwTextForm
         {
             if (!SwTextNode::IsIgnoredCharFormatForNumbering(nWhich, 
/*bIsCharStyle=*/true)
                 && !pCleanedSet->HasItem(nWhich)
-                && !(pFormat && pFormat->HasItem(nWhich)) )
+                && !(pFormat && pFormat->HasItem(nWhich))
+                && rStyleAttrs.GetItemState(nWhich) > SfxItemState::DEFAULT)
             {
                 // Copy from parent sets only allowed items which will not 
overwrite
                 // values explicitly defined in current set (pCleanedSet) or 
in pFormat

Reply via email to