Browse Source

Timeline: Fix region box drawing error.

tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
e42f0a9bd7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      timeline/src/Sequence_Widget.H

+ 2
- 2
timeline/src/Sequence_Widget.H View File

@@ -226,12 +226,12 @@ public:
if ( _r->start + _r->length < timeline->xoffset ) if ( _r->start + _r->length < timeline->xoffset )
rw = 0; rw = 0;
else else
rw = timeline->ts_to_x( ( _r->start + _r->length ) - timeline->xoffset );
rw = timeline->ts_to_x( ( _r->start + _r->length ) - timeline->xoffset ) + 10;
} }
else else
rw = abs_w(); rw = abs_w();


return (int)min( rw, (long)(_sequence->drawable_w() + 20) );
return (int)min( rw, (long)(_sequence->drawable_w()) + 20 );
} }


int abs_x ( void ) const { return timeline->ts_to_x( _r->start ); } int abs_x ( void ) const { return timeline->ts_to_x( _r->start ); }


Loading…
Cancel
Save