From 894ca126a2f73926df1f1eba0a5e875614e5ca43 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 19 Feb 2010 22:54:51 +0000 Subject: Fix for bug #2951353 HotSpotRange clearing when mouse moves out of window. --- src/Editor.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 876be0004..f9f02788a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5621,7 +5621,11 @@ void Editor::DwellEnd(bool mouseMoved) { } } -static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) { +void Editor::MouseLeave() { + SetHotSpotRange(NULL); +} + +static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) { return ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0) || (rectangular && ((virtualSpaceOptions & SCVS_RECTANGULARSELECTION) != 0)); } @@ -5897,6 +5901,7 @@ void Editor::ButtonMove(Point pt) { if (vs.fixedColumnWidth > 0) { // There is a margin if (PointInSelMargin(pt)) { DisplayCursor(Window::cursorReverseArrow); + SetHotSpotRange(NULL); return; // No need to test for selection } } -- cgit v1.2.3