diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 19:52:09 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-11-25 20:35:57 +0100 |
commit | 4ac2f1799f1d6d428c06e5699c246184dd8590ad (patch) | |
tree | b96b61a7a037074d3155b63f30c01fbf276c491f /svx/source/sidebar | |
parent | 1bc269504bc16b188f77204f53f1c34541750da9 (diff) |
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I2ae298f49ceba8059cd7236431db9a4d9a46b125
Reviewed-on: https://gerrit.libreoffice.org/63992
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/line/LinePropertyPanelBase.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx index 33c478fc457f..618aece61eec 100644 --- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx +++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx @@ -705,19 +705,19 @@ void LinePropertyPanelBase::SetWidthIcon() if(nVal <= 6) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[0]); - else if(nVal > 6 && nVal <= 9) + else if (nVal <= 9) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[1]); - else if(nVal > 9 && nVal <= 12) + else if (nVal <= 12) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[2]); - else if(nVal > 12 && nVal <= 19) + else if (nVal <= 19) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[3]); - else if(nVal > 19 && nVal <= 26) + else if (nVal <= 26) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[4]); - else if(nVal > 26 && nVal <= 37) + else if (nVal <= 37) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[5]); - else if(nVal > 37 && nVal <=52) + else if (nVal <= 52) mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[6]); - else if(nVal > 52) + else mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[7]); } |