From b11991abf6f1c8f5dbe864c6c8c980b73acf9a79 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 3 May 2016 11:56:15 +1000 Subject: Fix off-by-one error that allowed resizing autocompletion from bottom when it was located above the caret. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 53b101e32..26b7adb3f 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2618,7 +2618,7 @@ LRESULT ListBoxX::NcHitTest(WPARAM wParam, LPARAM lParam) const { case HTBOTTOMRIGHT: { PRectangle rc = const_cast(this)->GetPosition(); // Valid only if caret above list - if (rc.bottom < location.y) + if (rc.bottom <= location.y) hit = HTERROR; } break; -- cgit v1.2.3