Minor update to previous commit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19367 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-08-08 16:23:59 +00:00
parent a95c723f5c
commit b5dd06a1e0

View File

@ -249,7 +249,7 @@ char hebrewCounter(int const n)
//and for a list of roman numerals up to and including 3999, see
//http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost
//for this info.)
docstring const romanCounter(int const n, bool lowercase = false)
docstring const romanCounter(int const n)
{
static char const * const ones[9] = {
"I", "II", "III", "IV", "V",
@ -301,14 +301,13 @@ docstring const romanCounter(int const n, bool lowercase = false)
if (val > 0)
roman = roman + ones[val -1];
}
docstring retval = from_ascii(roman);
return lowercase ? support::lowercase(retval) : retval;
return from_ascii(roman);
}
docstring const lowerromanCounter(int const n)
{
return romanCounter(n, true);
return support::lowercase(romanCounter(n));
}
} // namespace anon