diff --git a/layout/generic/nsBulletFrame.cpp b/layout/generic/nsBulletFrame.cpp index f56e2c7c90dd..a858a37240f8 100644 --- a/layout/generic/nsBulletFrame.cpp +++ b/layout/generic/nsBulletFrame.cpp @@ -467,15 +467,20 @@ static PRBool RomanToText(PRInt32 ordinal, nsString& result, const char* achars, romanPos--; addOn.SetLength(0); switch(*dp) { - case '3': addOn.Append(PRUnichar(achars[romanPos])); - case '2': addOn.Append(PRUnichar(achars[romanPos])); - case '1': addOn.Append(PRUnichar(achars[romanPos])); + case '3': + addOn.Append(PRUnichar(achars[romanPos])); + // FALLTHROUGH + case '2': + addOn.Append(PRUnichar(achars[romanPos])); + // FALLTHROUGH + case '1': + addOn.Append(PRUnichar(achars[romanPos])); break; case '4': addOn.Append(PRUnichar(achars[romanPos])); // FALLTHROUGH case '5': case '6': - case '7': case '8': + case '7': case '8': addOn.Append(PRUnichar(bchars[romanPos])); for(n=0;'5'+n<*dp;n++) { addOn.Append(PRUnichar(achars[romanPos]));