[Libreoffice-commits] core.git: svx/source
Vasily Melenchuk (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 24 10:17:19 UTC 2021
svx/source/sidebar/nbdtmg.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1fd9116fbcd1a8d25f964087cd1d0eb15df8a2d1
Author: Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Mon Aug 23 12:27:20 2021 +0300
Commit: Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Tue Aug 24 12:16:44 2021 +0200
tdf#143990: writer: default value for SetIncludeUpperLevels is 1
Same as in e08fba90 for tdf#143858: zero for SetIncludeUpperLevels
has no practical sense, since actually this value is amount of levels
to display. Default and minimal value is 1 (current level), zero
used only in cases when there should be no numbering.
Change-Id: I303386339a9e13944e11d0287c933523c7410b6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120863
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index a6325389c874..3870a634ccf7 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -848,7 +848,7 @@ void OutlineTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1
}
} else
{
- aFmt.SetIncludeUpperLevels(sal::static_int_cast< sal_uInt8 >(0 != nUpperLevelOrChar ? aNum.GetLevelCount() : 0));
+ aFmt.SetIncludeUpperLevels(sal::static_int_cast< sal_uInt8 >(0 != nUpperLevelOrChar ? aNum.GetLevelCount() : 1));
aFmt.SetCharFormatName(GetNumCharFmtName());
if (isResetSize) aFmt.SetBulletRelSize(100);
}
More information about the Libreoffice-commits
mailing list