[Libreoffice-commits] core.git: include/svx
Miklos Vajna
vmiklos at collabora.co.uk
Wed Mar 23 09:38:09 UTC 2016
include/svx/pageitem.hxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit d29b75c402ea635b3865501e43c9f349885913af
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Mar 23 10:35:14 2016 +0100
svx: extend SvxNumType with BITMAP and CHARS_UPPER_LETTER_N
With abaf6bde4ee91c628bd55a7ec2e876a5d0ecff6e (tdf#65642 RTF filter: import
\pgnrestart and \pgnucltr, 2016-03-22), CppunitTest_sw_rtfimport causes an
SvxPageItem::eNumType (of type enum SvxNumType, with values 0--7) to contain a
value 9 (which suspiciously is css.style.NumberingType.CHARS_UPPER_LETTER_N),
which is undefined behavior.
Extend the internal enum (which is supposed to be a prefix ot the UNO API one)
to contain two more items. Should fix the problem pointed out at
<http://ci.libreoffice.org/job/lo_ubsan/212/console>.
Change-Id: I91b8c38de357ceee9e8691e15f885cdfbc0ef7ca
diff --git a/include/svx/pageitem.hxx b/include/svx/pageitem.hxx
index 388d49b..7d7d9c4 100644
--- a/include/svx/pageitem.hxx
+++ b/include/svx/pageitem.hxx
@@ -32,7 +32,9 @@ enum SvxNumType
SVX_ARABIC,
SVX_NUMBER_NONE,
SVX_CHAR_SPECIAL,
- SVX_PAGEDESC
+ SVX_PAGEDESC,
+ SVX_BITMAP,
+ SVX_CHARS_UPPER_LETTER_N
};
/*--------------------------------------------------------------------
More information about the Libreoffice-commits
mailing list