summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2021-01-30 11:16:54 -0900
committerJim Raykowski <raykowj@gmail.com>2021-04-30 01:41:27 +0200
commit43c47f0cc133782ed6c4037df38df0d0c82123b8 (patch)
tree106a801ec15801fa06398df09d15f9f64e06d226
parent58607e1c410ee89ddfd47dcd128abfa00e0ac839 (diff)
tdf#133548 don't change outline level attrib and list style attrib
when a new paragraph style is created based on a "to outline style assigned" paragraph style Change-Id: Ia757ca375e0e8749a24c27ad8e3f40daff7ef55d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112255 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sw/source/uibase/app/docst.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index d642e140f6f7..43cebe917a2a 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -794,17 +794,6 @@ void SwDocShell::Edit(
}
pDStyle->GetCollection()->SetDerivedFrom( pColl );
pDStyle->PresetParent( rParent );
-
- /*When a new paragraph style is created based on a "to outline style
- assigned" paragraph style, the outline level attribute and the list
- style attribute of the new paragraph style have to be set to 0
- respectively "".*/
- if (pColl && pColl->IsAssignedToListLevelOfOutlineStyle())
- {
- SwNumRuleItem aItem;
- pDStyle->GetCollection()->SetFormatAttr( aItem );
- pDStyle->GetCollection()->SetAttrOutlineLevel( 0 );
- }
}
else
{