From ce79a21bd06e08ea2cbf3c90cca6c26700a82b51 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Fri, 17 Jul 2009 01:28:30 +0000 Subject: [PATCH] Fix bug where going out of the view's range would cause the entire region to be deselected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31613 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/gui/team_window/SourceView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/debugger/gui/team_window/SourceView.cpp b/src/apps/debugger/gui/team_window/SourceView.cpp index ce971087af..0d2baf5278 100644 --- a/src/apps/debugger/gui/team_window/SourceView.cpp +++ b/src/apps/debugger/gui/team_window/SourceView.cpp @@ -1059,6 +1059,9 @@ SourceView::TextView::MouseMoved(BPoint where, uint32 transit, BRegion oldRegion; _GetSelectionRegion(oldRegion); SelectionPoint point = _SelectionPointAt(where); + if (point.line < 0) + return; + switch (transit) { case B_INSIDE_VIEW: case B_OUTSIDE_VIEW: