Corretti limiti selezione

git-svn-id: svn://10.65.10.50/trunk@858 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-01-12 14:47:20 +00:00
parent e3626153e1
commit 14fb7d4d71

View File

@ -291,7 +291,8 @@ bool TViswin::check_link (TPoint * p)
bool TViswin::in_text (const TPoint & p) const 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 TRUE;
return FALSE; return FALSE;
} }
@ -878,9 +879,9 @@ void TViswin::update ()
in_update = TRUE; in_update = TRUE;
erase_point (); erase_point();
autoscroll (FALSE); autoscroll(FALSE);
set_mode (M_COPY); set_mode(M_COPY);
if (_showbuts) if (_showbuts)
{ {
set_brush (BACKGROUND); set_brush (BACKGROUND);
@ -1083,7 +1084,7 @@ void TViswin::handler (WINDOW win, EVENT * ep)
erase_selection (); erase_selection ();
_isselection = FALSE; _isselection = FALSE;
} }
if (!in_text (p) || (p.y + origin ().y) >= _txt.lines ()) if (!in_text (p) || (p.y + origin().y) >= _txt.lines ())
{ {
ignore = TRUE; ignore = TRUE;
break; break;