summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-15 12:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 07:15:57 +0100
commitaa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch)
treec69ad9f8591f69749699ddd7c108238820532eb3 /sd/source/ui/dlg
parent9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (diff)
loplugin:simplifybool, check for !(!a op !b)
Change-Id: Ic3ee9c05705817580633506498f848aac3ab7ba6 Reviewed-on: https://gerrit.libreoffice.org/67866 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r--sd/source/ui/dlg/tpoption.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index 84b8563928f0..406c8552d42d 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -343,7 +343,7 @@ void SdTpOptionsMisc::ActivatePage( const SfxItemSet& rSet )
SetFieldUnit( *m_pMtrFldOriginalHeight, eFUnit, true );
m_pMtrFldOriginalHeight->SetValue( m_pMtrFldOriginalHeight->Normalize( nVal ), FieldUnit::TWIP );
- if( !(nWidth != 0 && nHeight != 0) )
+ if( nWidth == 0 || nHeight == 0 )
return;
m_pMtrFldInfo1->SetUnit( eFUnit );