sw/source/core/doc/docfmt.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 527f81f2717812a10f88fb69edeaf062fd8589a1 Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Thu Dec 5 09:51:03 2024 +0100 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Mon Feb 3 23:19:10 2025 +0100 fix regression from 075560420a7aa238182e2d80dfe1c5fbaad3edbd Applying a paragraph style with an attached list style does now overwrites a list style at a paragraph that had a list(style) applied Change-Id: I0dc124dc2db167370dab8416a6cc97d563bcc03c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177842 Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> Tested-by: Jenkins diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 8a061ad33b55..34f0b7b34f2c 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -1025,8 +1025,7 @@ static bool lcl_SetTextFormatColl( SwNode* pNode, void* pArgs ) SwNumRule* pNumRuleAtParagraph(rTNd.GetNumRule()); if ( pNumRuleAtParagraph ) { - const SwNumRuleItem& rNumRuleItemAtParagraphStyle = - rTNd.GetTextColl()->GetNumRule(); + const SwNumRuleItem& rNumRuleItemAtParagraphStyle = pFormat->GetNumRule(); if ( rNumRuleItemAtParagraphStyle.GetValue() == pNumRuleAtParagraph->GetName() ) {