diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-07 11:55:24 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-02-11 07:07:30 +0100 |
commit | 121182bddbce8f14cccdf7db9af8c08867a0912f (patch) | |
tree | dbad1ab9b7a4a4ea0f5862ae1a8679aa117c8829 /vcl/source/window/toolbox.cxx | |
parent | 6e8c9bdf0a55141d3cbd181862aec89b788bb060 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I67462369d93e9d9ff3c056800947c4b75f71ba5f
Reviewed-on: https://gerrit.libreoffice.org/67486
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 90bd2622ef87..ae3ce232557d 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -797,7 +797,7 @@ void ToolBox::ImplCalcFloatSizes() nCalcSize += mnMaxItemWidth; nTempLines = ImplCalcBreaks( nCalcSize, &nMaxLineWidth, true ); } - while ( (nCalcSize < upperBoundWidth) && (nLines < nTempLines) && (nTempLines != 1) ); + while ((nCalcSize < upperBoundWidth) && (nLines < nTempLines)); // implies nTempLines>1 if ( nTempLines < nLines ) nLines = nTempLines; } |