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: