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
This commit is contained in:
Rene Gollent
2009-07-17 01:28:30 +00:00
parent d2de9de701
commit ce79a21bd0
@@ -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: