diff options
Diffstat (limited to 'chart2/source/model/main/DataPoint.cxx')
-rw-r--r-- | chart2/source/model/main/DataPoint.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx index 6e9f6d483ccc..adde50ff466b 100644 --- a/chart2/source/model/main/DataPoint.cxx +++ b/chart2/source/model/main/DataPoint.cxx @@ -165,17 +165,18 @@ void SAL_CALL DataPoint::setParent( } // ____ OPropertySet ____ -uno::Any DataPoint::GetDefaultValue( sal_Int32 nHandle ) const +void DataPoint::GetDefaultValue( sal_Int32 nHandle, uno::Any& rAny ) const { // the value set at the data series is the default uno::Reference< beans::XFastPropertySet > xFast( m_xParentProperties.get(), uno::UNO_QUERY ); if( !xFast.is()) { OSL_ENSURE( m_bNoParentPropAllowed, "data point needs a parent property set to provide values correctly" ); - return uno::Any(); + rAny.clear(); + return; } - return xFast->getFastPropertyValue( nHandle ); + rAny = xFast->getFastPropertyValue( nHandle ); } void SAL_CALL DataPoint::setFastPropertyValue_NoBroadcast( |