diff options
| author | Neil <nyamatongwe@gmail.com> | 2016-05-03 11:56:15 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2016-05-03 11:56:15 +1000 | 
| commit | b11991abf6f1c8f5dbe864c6c8c980b73acf9a79 (patch) | |
| tree | a0aec4a539397d59f349ad78d1d15abe7d014445 | |
| parent | e9304f48ef17e8200f8705e886002a6957005430 (diff) | |
| download | scintilla-mirror-b11991abf6f1c8f5dbe864c6c8c980b73acf9a79.tar.gz | |
Fix off-by-one error that allowed resizing autocompletion from bottom when it
was located above the caret.
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | win32/PlatWin.cxx | 2 | 
2 files changed, 5 insertions, 1 deletions
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.  	<a href="http://sourceforge.net/p/scintilla/bugs/1825/">Bug #1825</a>.  	</li> +	<li> +	Fixed bug on Win32 that allowed resizing autocompletion from bottom when it was +	located above the caret. +	</li>      </ul>      <h3>         <a href="http://www.scintilla.org/scite365.zip">Release 3.6.5</a> 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<ListBoxX*>(this)->GetPosition();  				// Valid only if caret above list -				if (rc.bottom < location.y) +				if (rc.bottom <= location.y)  					hit = HTERROR;  			}  			break;  | 
