diff options
Diffstat (limited to 'chart2/source/model/main/ChartModel.cxx')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index a1f20b823f61..0ab069be4d67 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -347,7 +347,7 @@ sal_Bool SAL_CALL ChartModel::attachResource( const ::rtl::OUString& rURL return sal_False; //behave passive if already disposed or closed or throw exception @todo? //mutex is acquired - if(m_aResource.getLength()!=0)//we have a resource already //@todo? or is setting a new resource allowed? + if(!m_aResource.isEmpty())//we have a resource already //@todo? or is setting a new resource allowed? return sal_False; m_aResource = rURL; m_aMediaDescriptor = rMediaDescriptor; |