diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-17 21:19:22 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-01 12:54:11 +0200 |
commit | 8925abe25d4b426b091f23ec8e7f5e7d21d10583 (patch) | |
tree | 4635e58c26cf8ccd91f678366ccb22184a982615 /oox | |
parent | 078612f6c3ab62c6f7bb99625611dc791ab868da (diff) |
early bail out
Change-Id: I342c49f968a921167c4da8b98e7e17e79b945491
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index ae7a926e4f72..32abeb958a6f 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -1555,13 +1555,13 @@ void ChartExport::exportHiLowLines() return; Reference< beans::XPropertySet > xStockPropSet = xChartPropProvider->getMinMaxLine(); - if( xStockPropSet.is() ) - { - pFS->startElement( FSNS( XML_c, XML_hiLowLines ), - FSEND ); - exportShapeProps( xStockPropSet ); - pFS->endElement( FSNS( XML_c, XML_hiLowLines ) ); - } + if( !xStockPropSet.is() ) + return; + + pFS->startElement( FSNS( XML_c, XML_hiLowLines ), + FSEND ); + exportShapeProps( xStockPropSet ); + pFS->endElement( FSNS( XML_c, XML_hiLowLines ) ); } void ChartExport::exportUpDownBars( Reference< chart2::XChartType > xChartType) |