Timeline: Fix region box drawing error.
This commit is contained in:
parent
319a393cd6
commit
e42f0a9bd7
|
@ -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…
Reference in New Issue