Bail out gracefully from numbered lists not expressible in Roman numerals. Bug 210128, rs=bzbarsky.

This commit is contained in:
smontagu%netscape.com 2003-06-20 18:34:34 +00:00
Родитель fae339dc41
Коммит 139ea1cf24
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -481,12 +481,12 @@ static PRBool TamilToText(PRInt32 ordinal, nsString& result)
static const char gLowerRomanCharsA[] = "ixcm";
static const char gUpperRomanCharsA[] = "IXCM";
static const char gLowerRomanCharsB[] = "vld?";
static const char gUpperRomanCharsB[] = "VLD?";
static const char gLowerRomanCharsB[] = "vld";
static const char gUpperRomanCharsB[] = "VLD";
static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars, const char* bchars)
{
if (ordinal < 1) {
if (ordinal < 1 || ordinal > 3999) {
DecimalToText(ordinal, result);
return PR_FALSE;
}

Просмотреть файл

@ -481,12 +481,12 @@ static PRBool TamilToText(PRInt32 ordinal, nsString& result)
static const char gLowerRomanCharsA[] = "ixcm";
static const char gUpperRomanCharsA[] = "IXCM";
static const char gLowerRomanCharsB[] = "vld?";
static const char gUpperRomanCharsB[] = "VLD?";
static const char gLowerRomanCharsB[] = "vld";
static const char gUpperRomanCharsB[] = "VLD";
static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars, const char* bchars)
{
if (ordinal < 1) {
if (ordinal < 1 || ordinal > 3999) {
DecimalToText(ordinal, result);
return PR_FALSE;
}