diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-23 10:04:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-23 11:22:08 +0200 |
commit | 0b2f1292b3504b54e3799cd3d942365058360347 (patch) | |
tree | b36fbf6339ae09d1d16cf8c23c7f46d0767c6dcc /chart2/source/model/template/ChartTypeTemplate.cxx | |
parent | drop the SCsROW/SCsCOL/SCsTAB typedefs (diff) | |
download | core-0b2f1292b3504b54e3799cd3d942365058360347.tar.gz core-0b2f1292b3504b54e3799cd3d942365058360347.zip |
loplugin:comparisonwithconstant in chart2
Change-Id: I95787007b26cdcf0d5d1617ecd0e55d377b551d7
Reviewed-on: https://gerrit.libreoffice.org/37941
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/template/ChartTypeTemplate.cxx')
-rw-r--r-- | chart2/source/model/template/ChartTypeTemplate.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index cc7b5b833145..f6039056aea4 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -441,7 +441,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram Sequence< Reference< chart2::XAxis > > aAxisSeq( AxisHelper::getAllAxesOfDiagram( xDiagram ) ); for( sal_Int32 i=0; i<aAxisSeq.getLength(); ++i ) { - if( 1== AxisHelper::getDimensionIndexOfAxis( aAxisSeq[i], xDiagram ) ) + if( AxisHelper::getDimensionIndexOfAxis( aAxisSeq[i], xDiagram )== 1 ) { Reference< beans::XPropertySet > xAxisProp( aAxisSeq[i], uno::UNO_QUERY ); if( xAxisProp.is()) |