Avoid unnecessary redraw when duplicating.

This commit is contained in:
Jonathan Moore Liles 2008-03-03 22:11:06 -06:00
parent a0c6c794fa
commit 6a5417cd1a
2 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,8 @@ Region::init ( void )
Region::Region ( const Region & rhs )
{
_offset = rhs._offset;
_track = rhs._track;
// _track = rhs._track;
_track = NULL;
_clip = rhs._clip;
_start = rhs._start;
_end = rhs._end;

View File

@ -117,8 +117,9 @@ Track::add ( Track_Widget *r )
if ( r->track() )
{
r->redraw();
r->track()->remove( r );
r->track()->redraw();
// r->track()->redraw();
}
r->track( this );