diff options
Diffstat (limited to 'oox/source/drawingml/chart')
-rw-r--r-- | oox/source/drawingml/chart/chartspaceconverter.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/oox/source/drawingml/chart/chartspaceconverter.cxx b/oox/source/drawingml/chart/chartspaceconverter.cxx index 414ad31cc65f..a4ec67b4c1f5 100644 --- a/oox/source/drawingml/chart/chartspaceconverter.cxx +++ b/oox/source/drawingml/chart/chartspaceconverter.cxx @@ -203,14 +203,11 @@ void ChartSpaceConverter::convertFromModel( const Reference< XShapes >& rxExtern } // pivot chart - if ( mrModel.mbPivotChart ) try - { - Reference< XPropertySet > xProps( getChartDocument(), UNO_QUERY_THROW ); - xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableDataTableDialog" ) ), makeAny( sal_True ) ); - xProps->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DisableComplexChartTypes" ) ), makeAny( sal_True ) ); - } - catch ( Exception& ) + if ( mrModel.mbPivotChart ) { + PropertySet aProps( getChartDocument() ); + aProps.setProperty( PROP_DisableDataTableDialog , true ); + aProps.setProperty( PROP_DisableComplexChartTypes , true ); } } |