Kaydet (Commit) 992fba98 authored tarafından Caolán McNamara's avatar Caolán McNamara

ubsan: 9 is not a valid value for type ´SvxNumType´

which was originally fixed by...

commit d29b75c4
Author: Miklos Vajna <vmiklos@collabora.co.uk>
Date:   Wed Mar 23 10:35:14 2016 +0100

    svx: extend SvxNumType with BITMAP and CHARS_UPPER_LETTER_N

but was lost again with...

commit d30a4298
Author: Noel Grandin <noel@peralex.com>
Date:   Thu Aug 11 15:02:19 2016 +0200

    loplugin:unusedenumconstants in package..svtools

bring it back, but make it more obvious that the elements map
to the othere sequence of numbers.

Maybe we should just change this sal_Int16 and let it take the
whole range ?

Change-Id: Ibfa548c1d37aa078fc682530372727776e45f9cf
üst 10290000
......@@ -21,17 +21,20 @@
#include <svl/poolitem.hxx>
#include <svx/svxdllapi.h>
#include <com/sun/star/style/NumberingType.hpp>
enum SvxNumType
{
SVX_CHARS_UPPER_LETTER,
SVX_CHARS_LOWER_LETTER,
SVX_ROMAN_UPPER,
SVX_ROMAN_LOWER,
SVX_ARABIC,
SVX_NUMBER_NONE,
SVX_PAGEDESC,
SVX_CHARS_UPPER_LETTER = css::style::NumberingType::CHARS_UPPER_LETTER,
SVX_CHARS_LOWER_LETTER = css::style::NumberingType::CHARS_LOWER_LETTER,
SVX_ROMAN_UPPER = css::style::NumberingType::ROMAN_UPPER,
SVX_ROMAN_LOWER = css::style::NumberingType::ROMAN_LOWER,
SVX_ARABIC = css::style::NumberingType::ARABIC,
SVX_NUMBER_NONE = css::style::NumberingType::NUMBER_NONE,
SVX_CHAR_SPECIAL = css::style::NumberingType::CHAR_SPECIAL,
SVX_PAGEDESC = css::style::NumberingType::PAGE_DESCRIPTOR,
SVX_BITMAP = css::style::NumberingType::BITMAP,
SVX_CHARS_UPPER_LETTER_N = css::style::NumberingType::CHARS_UPPER_LETTER_N
};
/*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment