diff --git a/include/viswin.cpp b/include/viswin.cpp index 116b8badf..a018a9ce3 100755 --- a/include/viswin.cpp +++ b/include/viswin.cpp @@ -291,7 +291,8 @@ bool TViswin::check_link (TPoint * p) bool TViswin::in_text (const TPoint & p) const { - if (p.x > 5 && p.x < columns () && p.y > 0 && p.y < (rows () - BUTTONROW_SIZE)) + if (p.x > (X_OFFSET - 1) && p.x < columns() && + p.y > (Y_OFFSET - 1) && p.y < (rows() - BUTTONROW_SIZE)) return TRUE; return FALSE; } @@ -878,9 +879,9 @@ void TViswin::update () in_update = TRUE; - erase_point (); - autoscroll (FALSE); - set_mode (M_COPY); + erase_point(); + autoscroll(FALSE); + set_mode(M_COPY); if (_showbuts) { set_brush (BACKGROUND); @@ -1083,7 +1084,7 @@ void TViswin::handler (WINDOW win, EVENT * ep) erase_selection (); _isselection = FALSE; } - if (!in_text (p) || (p.y + origin ().y) >= _txt.lines ()) + if (!in_text (p) || (p.y + origin().y) >= _txt.lines ()) { ignore = TRUE; break;