summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
index 76bfe053c46f..2bfb5ed42211 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedAutomaticPositionProperties.cxx
@@ -54,26 +54,26 @@ WrappedAutomaticPositionProperty::WrappedAutomaticPositionProperty()
void WrappedAutomaticPositionProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const
{
- if( xInnerPropertySet.is() )
- {
- bool bNewValue = true;
- if( ! (rOuterValue >>= bNewValue) )
- throw lang::IllegalArgumentException( "Property AutomaticPosition requires value of type boolean", nullptr, 0 );
+ if( !xInnerPropertySet.is() )
+ return;
- try
- {
- if( bNewValue )
- {
- Any aRelativePosition( xInnerPropertySet->getPropertyValue( "RelativePosition" ) );
- if( aRelativePosition.hasValue() )
- xInnerPropertySet->setPropertyValue( "RelativePosition", Any() );
- }
- }
- catch( const uno::Exception & )
+ bool bNewValue = true;
+ if( ! (rOuterValue >>= bNewValue) )
+ throw lang::IllegalArgumentException( "Property AutomaticPosition requires value of type boolean", nullptr, 0 );
+
+ try
+ {
+ if( bNewValue )
{
- DBG_UNHANDLED_EXCEPTION("chart2");
+ Any aRelativePosition( xInnerPropertySet->getPropertyValue( "RelativePosition" ) );
+ if( aRelativePosition.hasValue() )
+ xInnerPropertySet->setPropertyValue( "RelativePosition", Any() );
}
}
+ catch( const uno::Exception & )
+ {
+ DBG_UNHANDLED_EXCEPTION("chart2");
+ }
}
Any WrappedAutomaticPositionProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const