summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-12 08:57:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 12:53:38 +0200
commit6eba86ae9d6c8550e069ef933889610aee309381 (patch)
treea9b278f2d124c1db1261bc5128516fff3ea89919 /cui
parentloplugin:unusedfields (diff)
downloadcore-6eba86ae9d6c8550e069ef933889610aee309381.tar.gz
core-6eba86ae9d6c8550e069ef933889610aee309381.zip
clang-tidy misc-redundant-expression
Change-Id: I708b0b486a233071f95592ccdb97f27fc35a23c4 Reviewed-on: https://gerrit.libreoffice.org/61783 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/chardlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index eb80b4187fdf..bb12ccb57341 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -1616,7 +1616,7 @@ void SvxCharEffectsPage::SelectHdl_Impl(weld::ComboBox* pBox)
if (m_xEmphasisLB.get() == pBox)
{
auto nEPos = m_xEmphasisLB->get_active();
- bool bEnable = nEPos > 0 && nEPos != -1;
+ bool bEnable = nEPos > 0;
m_xPositionFT->set_sensitive( bEnable );
m_xPositionLB->set_sensitive( bEnable );
}