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. --- doc/ScintillaHistory.html | 4 ++++ win32/PlatWin.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 3758bddbb..df3ccf8f9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -513,6 +513,10 @@ Fixed bugs when used on GTK+ 3.20. Bug #1825. +
  • + Fixed bug on Win32 that allowed resizing autocompletion from bottom when it was + located above the caret. +
  • Release 3.6.5 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