Timeline: Fix region box drawing error.

This commit is contained in:
Jonathan Moore Liles 2015-09-18 17:25:48 -07:00
parent 319a393cd6
commit e42f0a9bd7
1 changed files with 2 additions and 2 deletions

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 ); }