sw/source/core/doc/docfmt.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 68afc28cd5221a42e941f2973d988897584a16e3 Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Thu Dec 5 09:51:03 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Feb 4 11:57:58 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 (cherry picked from commit 527f81f2717812a10f88fb69edeaf062fd8589a1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181081 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 34772d2fd1e1..473006ad3bb9 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -1028,8 +1028,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() ) {