incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liji...@apache.org
Subject svn commit: r1374138 - /incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
Date Fri, 17 Aug 2012 05:19:14 GMT
Author: lijiany
Date: Fri Aug 17 05:19:14 2012
New Revision: 1374138

URL: http://svn.apache.org/viewvc?rev=1374138&view=rev
Log:
Add default to switch statements to avoid compiler warnings.
Patch by: Jianyuan Li

Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx?rev=1374138&r1=1374137&r2=1374138&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx Fri Aug 17 05:19:14 2012
@@ -507,7 +507,7 @@ void EscherPropertyContainer::CreateGrad
 				//Value of the real number = Integral + (Fractional / 65536.0)
 				nAngle = ( nAngle * 0x10000) / 10;
 
-				nFillFocus = (pGradient->Style == GradientStyle_LINEAR) ? 
+				nFillFocus = (pGradient->Style == ::com::sun::star::awt::GradientStyle_LINEAR) ? 
 							( pGradient->XOffset + pGradient->YOffset )/2 : -50;
 				if( !nFillFocus )
 					nFirstColor=nFirstColor ^ 1;
@@ -531,6 +531,7 @@ void EscherPropertyContainer::CreateGrad
 				bWriteFillTo = true;
 			}
 			break;
+		default: break;
 		}
 	}
 	



Mime
View raw message