From bc5019035cd89b7e356cef2fc2e4ba65b05ccd0a Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 7 Mar 2008 19:05:53 -0600 Subject: [PATCH] Fix undo for control points. --- Control_Point.H | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Control_Point.H b/Control_Point.H index adecb1b..3a948ac 100644 --- a/Control_Point.H +++ b/Control_Point.H @@ -44,9 +44,9 @@ protected: int i = 0; - asprintf( &sa[i++], ":track 0x%X", _track ? _track->id() : 0 ); asprintf( &sa[i++], ":x %lu", _offset ); asprintf( &sa[i++], ":y %.2f", _y ); + asprintf( &sa[i++], ":track 0x%X", _track ? _track->id() : 0 ); sa[i] = NULL; @@ -67,7 +67,7 @@ protected: if ( ! strcmp( s, ":x" ) ) _offset = atol( v ); else - if ( ! strcmp( s, ":control" ) ) + if ( ! strcmp( s, ":y" ) ) _y = atof( v ); else if ( ! strcmp( s, ":track" ) ) @@ -79,6 +79,8 @@ protected: assert( t ); t->add( this ); + + t->sort(); }