related tdf#150197: use SetListFormat or SetPrefix/Suffix
commit835cda561217bd8c53af2de927158dd5712b06c0
authorJustin Luth <jluth@mail.com>
Tue, 2 Aug 2022 17:30:31 +0000 (2 13:30 -0400)
committerJustin Luth <jluth@mail.com>
Fri, 12 Aug 2022 14:27:42 +0000 (12 16:27 +0200)
tree4342021d4381f499eaafa4e31347e53ef007d955
parentacf2a2f17942c21b5aca4691c738902a3dd9aa6c
related tdf#150197: use SetListFormat or SetPrefix/Suffix

GetListFormat DEPENDS on having managed prefix/suffix itself,
since it uses their getLength to modify the sListFormat.
So any modification via SetPrefix/Suffix
(potentially) invalidates the ListFormat.
I added some code to ensure this doesn't get out of sync.

One place that still uses PREFIX/SUFFIX is old ODT files.
After import they are updated, but during import they use
the old UNO properties, so I didn't add any assert here.

Change-Id: I3bab780fb8e8e985c3573075bc7aac9216d116d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138073
Tested-by: Jenkins
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
Reviewed-by: Justin Luth <jluth@mail.com>
editeng/source/items/numitem.cxx
include/editeng/numitem.hxx