diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 11:34:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 13:46:26 +0200 |
commit | 6f6f1680ec35b1616c2fc54e5ee8c3b85edf333b (patch) | |
tree | 5ec6cfdde2c0c848416155d1d8cab72a3254525e /hwpfilter/source/hwpreader.cxx | |
parent | 8581d880f8aa8c2be15c875db291cebbb42841c7 (diff) |
loplugin:simplifybool in hwpfilter..lotuswordpro
Change-Id: Iedfd492c963eb89fe75fdd73cae630e7e1dae119
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95100
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source/hwpreader.cxx')
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx index 916017854364..d0ba9b0abf82 100644 --- a/hwpfilter/source/hwpreader.cxx +++ b/hwpfilter/source/hwpreader.cxx @@ -2467,7 +2467,7 @@ void HwpReader::makeFStyle(FBoxStyle * fstyle) padd("fo:padding", sXML_CDATA, "0cm"); } - if( !(fstyle->boxtype == 'G' && fstyle->cap_len > 0 )) + if( fstyle->boxtype != 'G' || fstyle->cap_len <= 0 ) { padd("fo:margin-left", sXML_CDATA, Double2Str(WTMM(fstyle->margin[0][0]) ) + "mm"); |