From 5cb724cecc3c3157984ef2a4fd4db7474c9f95c9 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 14 Feb 2008 23:29:12 -0600 Subject: [PATCH] Correct off-by-one in drawing of selection rectangle. --- canvas.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas.C b/canvas.C index 230614f..ac7bb10 100644 --- a/canvas.C +++ b/canvas.C @@ -338,7 +338,7 @@ Canvas::flip ( void ) /* draw selection rect */ if ( m.p3 != m.p4 ) if ( y + m.vp->y >= m.p3 && x + m.vp->x >= m.p1 && - y + m.vp->y < m.p4 && x + m.vp->x < m.p2 ) + y + m.vp->y <= m.p4 && x + m.vp->x < m.p2 ) c->flags |= F_SELECTION; if ( *c != *p )