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:
@@ -1059,6 +1059,9 @@ SourceView::TextView::MouseMoved(BPoint where, uint32 transit,
|
|||||||
BRegion oldRegion;
|
BRegion oldRegion;
|
||||||
_GetSelectionRegion(oldRegion);
|
_GetSelectionRegion(oldRegion);
|
||||||
SelectionPoint point = _SelectionPointAt(where);
|
SelectionPoint point = _SelectionPointAt(where);
|
||||||
|
if (point.line < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (transit) {
|
switch (transit) {
|
||||||
case B_INSIDE_VIEW:
|
case B_INSIDE_VIEW:
|
||||||
case B_OUTSIDE_VIEW:
|
case B_OUTSIDE_VIEW:
|
||||||
|
|||||||
Reference in New Issue
Block a user