Kaydet (Commit) 31cb5c19 authored tarafından Caolán McNamara's avatar Caolán McNamara

loplugin:literaltoboolconversion wrong condition

Change-Id: I9ad2a52434329acc961db2e5a3e28816af7cda7c
üst fa9ac78d
...@@ -1111,11 +1111,11 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar ...@@ -1111,11 +1111,11 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
{ {
aEditRect = AdjustRectForTextBordersPadding(mpListboxStyle, rValue.getNumericVal(), rControlRegion); 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); 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); aEditRect = AdjustRectForTextBordersPadding(mpSpinStyle, rValue.getNumericVal(), rControlRegion);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment