diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 10:32:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 11:53:48 +0200 |
commit | 9d7b96e00909fa6798aafb9b385e58cda360e05f (patch) | |
tree | 4310865d671bcb0d47d548def9961d351c12cb9d /svtools/source/table | |
parent | 6891ab0dae58fe482e89eec5186ad7aeff909cac (diff) |
clang-tidy readability-simplify-boolean-expr in svtools
Change-Id: I13286a691348e136d16c07473285313c3ba5bba2
Reviewed-on: https://gerrit.libreoffice.org/36928
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/table')
-rw-r--r-- | svtools/source/table/gridtablerenderer.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index 8a486187a8ea..7df61b8db309 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -589,10 +589,7 @@ namespace svt { namespace table return false; long const nTextWidth = i_targetDevice.GetTextWidth( sText ); - if ( nTextWidth > aTargetArea.GetWidth() ) - return false; - - return true; + return nTextWidth <= aTargetArea.GetWidth(); } |