diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-13 11:40:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-13 13:15:04 +0200 |
commit | 949628c412d04a27ef655d4103812b53235a82c1 (patch) | |
tree | 7114d672ed85bacd9a919696db64991aaa5eab6a | |
parent | 9059a17e3a8cfe536f66dfe17bd213d81f09c625 (diff) |
Reduce scope of variable
Change-Id: I07745fc47f5d7908c35045e83cb230d4e91a813a
-rw-r--r-- | oox/source/drawingml/fillproperties.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 883f9a459e8b..a667bc5a4b19 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -365,7 +365,6 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, if ( !maGradientProps.moRotateWithShape.get( false ) ) nShapeRotation = 0; - sal_Int32 nDmlAngle = 0; if( maGradientProps.moGradientPath.has() ) { aGradient.Style = (maGradientProps.moGradientPath.get() == XML_circle) ? awt::GradientStyle_ELLIPTICAL : awt::GradientStyle_RECT; @@ -533,7 +532,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, // Now we have a potential border and a largest segment. Use those. aGradient.Style = bSymmetric ? awt::GradientStyle_AXIAL : awt::GradientStyle_LINEAR; - nDmlAngle = maGradientProps.moShadeAngle.get( 0 ) - nShapeRotation; + sal_Int32 nDmlAngle = maGradientProps.moShadeAngle.get( 0 ) - nShapeRotation; // convert DrawingML angle (in 1/60000 degrees) to API angle (in 1/10 degrees) aGradient.Angle = static_cast< sal_Int16 >( (4500 - (nDmlAngle / (PER_DEGREE / 10))) % 3600 ); Color aStartColor, aEndColor; |