Fix undo for control points.
This commit is contained in:
parent
43b244a2db
commit
bc5019035c
|
@ -44,9 +44,9 @@ protected:
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
asprintf( &sa[i++], ":track 0x%X", _track ? _track->id() : 0 );
|
|
||||||
asprintf( &sa[i++], ":x %lu", _offset );
|
asprintf( &sa[i++], ":x %lu", _offset );
|
||||||
asprintf( &sa[i++], ":y %.2f", _y );
|
asprintf( &sa[i++], ":y %.2f", _y );
|
||||||
|
asprintf( &sa[i++], ":track 0x%X", _track ? _track->id() : 0 );
|
||||||
|
|
||||||
sa[i] = NULL;
|
sa[i] = NULL;
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ protected:
|
||||||
if ( ! strcmp( s, ":x" ) )
|
if ( ! strcmp( s, ":x" ) )
|
||||||
_offset = atol( v );
|
_offset = atol( v );
|
||||||
else
|
else
|
||||||
if ( ! strcmp( s, ":control" ) )
|
if ( ! strcmp( s, ":y" ) )
|
||||||
_y = atof( v );
|
_y = atof( v );
|
||||||
else
|
else
|
||||||
if ( ! strcmp( s, ":track" ) )
|
if ( ! strcmp( s, ":track" ) )
|
||||||
|
@ -79,6 +79,8 @@ protected:
|
||||||
assert( t );
|
assert( t );
|
||||||
|
|
||||||
t->add( this );
|
t->add( this );
|
||||||
|
|
||||||
|
t->sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue