diff layer/TimeInstantLayer.h @ 376:e1a9e478b7f2

* juggle some files around in order to free audioio, base, and system libraries from dependency on QtGui
author Chris Cannam
date Wed, 12 Mar 2008 17:42:56 +0000
parents 020c485aa7e0
children b3140e9e0665
line wrap: on
line diff
--- a/layer/TimeInstantLayer.h	Wed Mar 12 14:40:18 2008 +0000
+++ b/layer/TimeInstantLayer.h	Wed Mar 12 17:42:56 2008 +0000
@@ -112,6 +112,11 @@
     SparseOneDimensionalModel::Point m_editingPoint;
     SparseOneDimensionalModel::EditCommand *m_editingCommand;
     PlotStyle m_plotStyle;
+
+    void finish(SparseOneDimensionalModel::EditCommand *command) {
+        Command *c = command->finish();
+        if (c) CommandHistory::getInstance()->addCommand(c, false);
+    }
 };
 
 #endif