summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs/res_DataLabel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-23 10:04:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-23 11:22:08 +0200
commit0b2f1292b3504b54e3799cd3d942365058360347 (patch)
treeb36fbf6339ae09d1d16cf8c23c7f46d0767c6dcc /chart2/source/controller/dialogs/res_DataLabel.cxx
parentdrop the SCsROW/SCsCOL/SCsTAB typedefs (diff)
downloadcore-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/controller/dialogs/res_DataLabel.cxx')
-rw-r--r--chart2/source/controller/dialogs/res_DataLabel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx
index a132ddf27e40..c75d8c4808c1 100644
--- a/chart2/source/controller/dialogs/res_DataLabel.cxx
+++ b/chart2/source/controller/dialogs/res_DataLabel.cxx
@@ -208,7 +208,7 @@ IMPL_LINK( DataLabelResources, NumberFormatDialogHdl, Button *, pButton, void )
ScopedVclPtrInstance< NumberFormatDialog > aDlg(m_pWindow, aNumberSet);
if( bPercent )
aDlg->SetText( m_pFT_NumberFormatForPercent->GetText());
- if( RET_OK == aDlg->Execute() )
+ if( aDlg->Execute() == RET_OK )
{
const SfxItemSet* pResult = aDlg->GetOutputItemSet();
if( pResult )