tdf#143858: sw: default value for nInclUpperLevels is 1
commit37dd6e18f5cf498d230ffe8a0a395cfdf9625e0c
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Fri, 13 Aug 2021 13:56:06 +0000 (13 16:56 +0300)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Tue, 17 Aug 2021 14:53:39 +0000 (17 16:53 +0200)
tree8c0f9dfa175c0c81f8ac978f8bf4c224897184cb
parent15f340f35cd9dc635d0507ca7de9d11227ae9922
tdf#143858: sw: default value for nInclUpperLevels is 1

SvxNumberFormat::nInclUpperLevels (matches text:display-levels in ODF)
bit incorrect in its name: is counts total amount of levels to display,
including current level. So value "0" seems have no sense: display 0
levels in total?

In UI you can't select less than 1 level and ODF standard (19.797)
using 1 as a default. This looks plausable.

Change-Id: I596386c7b3cc4370910cd0ff6e927e501179fbdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120458
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
cui/source/tabpages/numpages.cxx
editeng/source/items/numitem.cxx