[Libreoffice-commits] core.git: sw/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Mon Sep 21 01:19:34 PDT 2015
sw/source/core/doc/DocumentStylePoolManager.cxx | 9 ++-------
sw/source/core/doc/docnum.cxx | 1 -
2 files changed, 2 insertions(+), 8 deletions(-)
New commits:
commit 6afa5614463fbc952d5a983c813d587edbc82fac
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Mon Sep 21 08:46:01 2015 +0200
Cleanup: Remove superfluous comment
No need to mention that there has been a check for some state sometime.
Change-Id: I844478350ae1209ae64766d28d8e254b7a4d9e10
Reviewed-on: https://gerrit.libreoffice.org/18739
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/sw/source/core/doc/DocumentStylePoolManager.cxx b/sw/source/core/doc/DocumentStylePoolManager.cxx
index 3fd845b..3a7567b 100644
--- a/sw/source/core/doc/DocumentStylePoolManager.cxx
+++ b/sw/source/core/doc/DocumentStylePoolManager.cxx
@@ -204,15 +204,10 @@ namespace
pColl->SetFormatAttr( aLR );
}
- // #i71764#
- // Check on document setting OUTLINE_LEVEL_YIELDS_OUTLINE_RULE no longer needed.
// All paragraph styles, which are assigned to a level of the
// outline style has to have the outline style set as its list style.
- {
- SwNumRuleItem aItem(pOutlineRule->GetName());
-
- pColl->SetFormatAttr(aItem);
- }
+ SwNumRuleItem aItem(pOutlineRule->GetName());
+ pColl->SetFormatAttr(aItem);
}
}
pColl->SetNextTextFormatColl( *pDoc->getIDocumentStylePoolAccess().GetTextCollFromPool(
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 787558f..ea9c695 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -158,7 +158,6 @@ void SwDoc::PropagateOutlineRule()
// Check only the list style, which is set at the paragraph style
const SwNumRuleItem & rCollRuleItem = pColl->GetNumRule( false );
- // Check on document setting OUTLINE_LEVEL_YIELDS_OUTLINE_RULE no longer needed.
if ( rCollRuleItem.GetValue().isEmpty() )
{
SwNumRule * pMyOutlineRule = GetOutlineNumRule();
More information about the Libreoffice-commits
mailing list