Kaydet (Commit) 10cddaae authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make check of Any value more robust

...in light of the various UNO integer types

Change-Id: Ie525e8cdd1d155446985ddfb2667714be2dd4904
üst 109582aa
...@@ -329,8 +329,12 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS ...@@ -329,8 +329,12 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS
aGrabBag[length+1].Value = uno::makeAny(sal_Int32(NormAngle360((maTypeModel.maRotation.toInt32()) * -100))); aGrabBag[length+1].Value = uno::makeAny(sal_Int32(NormAngle360((maTypeModel.maRotation.toInt32()) * -100)));
} }
propertySet->setPropertyValue( "FrameInteropGrabBag", uno::makeAny(aGrabBag) ); propertySet->setPropertyValue( "FrameInteropGrabBag", uno::makeAny(aGrabBag) );
sal_Int32 backColorTransparency = 0;
propertySet->getPropertyValue("BackColorTransparency")
>>= backColorTransparency;
if (propertySet->getPropertyValue("FillStyle") == FillStyle_NONE && if (propertySet->getPropertyValue("FillStyle") == FillStyle_NONE &&
propertySet->getPropertyValue("BackColorTransparency") == makeAny(100)) { backColorTransparency == 100)
{
// If there is no fill, the Word default is 100% transparency. // If there is no fill, the Word default is 100% transparency.
propertySet->setPropertyValue("FillTransparence", makeAny(sal_Int16(100))); propertySet->setPropertyValue("FillTransparence", makeAny(sal_Int16(100)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment