incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1348028 - /incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx
Date Fri, 08 Jun 2012 11:36:51 GMT
Author: af
Date: Fri Jun  8 11:36:51 2012
New Revision: 1348028

URL: http://svn.apache.org/viewvc?rev=1348028&view=rev
Log:
#i119907# Numbering type now applied (almost) unconditionally.

          Patch by: Steve Yin
          Cleanup: af


Modified:
    incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx

Modified: incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx?rev=1348028&r1=1348027&r2=1348028&view=diff
==============================================================================
--- incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx (original)
+++ incubator/ooo/trunk/main/editeng/source/uno/unonrule.cxx Fri Jun  8 11:36:51 2012
@@ -298,18 +298,9 @@ void SvxUnoNumberingRules::setNumberingR
 			sal_Int16 nSet = sal_Int16();
 			aVal >>= nSet;
 
-			switch(nSet)
+			// There is no reason to limit numbering types.
+			if ( nSet>=0 )
 			{
-			case SVX_NUM_BITMAP:
-			case SVX_NUM_CHAR_SPECIAL:
-			case SVX_NUM_ROMAN_UPPER:
-			case SVX_NUM_ROMAN_LOWER:
-			case SVX_NUM_CHARS_UPPER_LETTER:
-			case SVX_NUM_CHARS_LOWER_LETTER:
-			case SVX_NUM_ARABIC:
-			case SVX_NUM_NUMBER_NONE:
-			case SVX_NUM_CHARS_UPPER_LETTER_N:
-			case SVX_NUM_CHARS_LOWER_LETTER_N:
 				aFmt.SetNumberingType(nSet);
 				continue;
 			}



Mime
View raw message