summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2024-12-05 09:51:03 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-12-19 10:35:28 +0100
commit6cdcaefe94597df028f935f08b2079ecbba020ec (patch)
tree4f6d9ca49c6b8f805c8451e3739bd733e328ba39
parent25e78ad66f6adf6b62f821edb170df431c335bff (diff)
fix regression from 075560420a7aa238182e2d80dfe1c5fbaad3edbd
Applying a paragraph style with an attached list style does now overwrite a list style at a paragraph that had a list(style) applied Change-Id: I0dc124dc2db167370dab8416a6cc97d563bcc03c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178727 Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: allotropia jenkins <jenkins@allotropia.de>
-rw-r--r--sw/source/core/doc/docfmt.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index abce04888365..daf7e6812556 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -1054,8 +1054,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() )
{