You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by li...@apache.org on 2012/08/17 07:19:14 UTC
svn commit: r1374138 -
/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
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;
}
}