Browse Source

Correct off-by-one in drawing of selection rectangle.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 17 years ago
parent
commit
5cb724cecc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      canvas.C

+ 1
- 1
canvas.C View File

@@ -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 )


Loading…
Cancel
Save