diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 21:06:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 21:07:24 +0100 |
commit | 31cb5c19f8ad28f25fcff24648789772dee3afe5 (patch) | |
tree | 732acc0add2fa6f1467398736f97c2191cdcbaba /vcl | |
parent | fa9ac78d0c12b307c401bfede2cb08f89d0a15e3 (diff) |
loplugin:literaltoboolconversion wrong condition
Change-Id: I9ad2a52434329acc961db2e5a3e28816af7cda7c
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 0112cedecaf9..9bf98246de9a 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -1111,11 +1111,11 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar { aEditRect = AdjustRectForTextBordersPadding(mpListboxStyle, rValue.getNumericVal(), rControlRegion); } - else if (CTRL_COMBOBOX && nPart == PART_ENTIRE_CONTROL) + else if (nType == CTRL_COMBOBOX && nPart == PART_ENTIRE_CONTROL) { aEditRect = AdjustRectForTextBordersPadding(mpComboboxStyle, rValue.getNumericVal(), rControlRegion); } - else if (CTRL_SPINBOX && nPart == PART_ENTIRE_CONTROL) + else if (nType == CTRL_SPINBOX && nPart == PART_ENTIRE_CONTROL) { aEditRect = AdjustRectForTextBordersPadding(mpSpinStyle, rValue.getNumericVal(), rControlRegion); } |