[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Mon Apr 27 13:07:49 PDT 2015
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 31cb5c19f8ad28f25fcff24648789772dee3afe5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 27 21:06:26 2015 +0100
loplugin:literaltoboolconversion wrong condition
Change-Id: I9ad2a52434329acc961db2e5a3e28816af7cda7c
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 0112ced..9bf9824 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);
}
More information about the Libreoffice-commits
mailing list