Index: /applications/editors/josm/plugins/splinex/build.xml
===================================================================
--- /applications/editors/josm/plugins/splinex/build.xml	(revision 33843)
+++ /applications/editors/josm/plugins/splinex/build.xml	(revision 33844)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="12663"/>
+    <property name="plugin.main.version" value="12987"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java
===================================================================
--- /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java	(revision 33843)
+++ /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/DrawSplineAction.java	(revision 33844)
@@ -28,5 +28,5 @@
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings;
-import org.openstreetmap.josm.data.preferences.ColorProperty;
+import org.openstreetmap.josm.data.preferences.NamedColorProperty;
 import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.MapFrame;
@@ -108,7 +108,7 @@
     @Override
     protected void readPreferences() {
-        rubberLineColor = new ColorProperty(marktr("helper line"), Color.RED).get();
-        initialMoveDelay = Main.pref.getInteger("edit.initial-move-", 200);
-        initialMoveThreshold = Main.pref.getInteger("edit.initial-move-threshold", 5);
+        rubberLineColor = new NamedColorProperty(marktr("helper line"), Color.RED).get();
+        initialMoveDelay = Main.pref.getInt("edit.initial-move-", 200);
+        initialMoveThreshold = Main.pref.getInt("edit.initial-move-threshold", 5);
         initialMoveThreshold *= initialMoveThreshold;
         drawHelperLine = Main.pref.getBoolean("draw.helper-line", true);
Index: /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java
===================================================================
--- /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java	(revision 33843)
+++ /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java	(revision 33844)
@@ -28,4 +28,5 @@
 import org.openstreetmap.josm.command.SequenceCommand;
 import org.openstreetmap.josm.data.coor.EastNorth;
+import org.openstreetmap.josm.data.osm.DataSet;
 import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
 import org.openstreetmap.josm.data.osm.Node;
@@ -251,4 +252,5 @@
         EastNorth a = sn.node.getEastNorth();
         EastNorth ca = a.add(sn.cnext);
+        DataSet ds = MainApplication.getLayerManager().getEditDataSet();
         while (it.hasNext()) {
             sn = it.next();
@@ -265,5 +267,5 @@
                         return;
                     }
-                    cmds.add(new AddCommand(n));
+                    cmds.add(new AddCommand(ds, n));
                     w.addNode(n);
                 }
@@ -273,5 +275,5 @@
         }
         if (!cmds.isEmpty())
-            cmds.add(new AddCommand(w));
+            cmds.add(new AddCommand(ds, w));
         MainApplication.undoRedo.add(new FinishSplineCommand(cmds));
     }
@@ -301,4 +303,5 @@
 
         public AddSplineNodeCommand(SNode sn, boolean existing, int idx) {
+            super(MainApplication.getLayerManager().getEditDataSet());
             this.sn = sn;
             this.existing = existing;
@@ -362,4 +365,5 @@
 
         public DeleteSplineNodeCommand(int idx) {
+            super(MainApplication.getLayerManager().getEditDataSet());
             this.idx = idx;
         }
@@ -419,4 +423,5 @@
 
         public EditSplineCommand(SNode sn) {
+            super(MainApplication.getLayerManager().getEditDataSet());
             this.sn = sn;
             cprev = sn.cprev.add(0, 0);
@@ -458,4 +463,9 @@
 
     public class CloseSplineCommand extends Command {
+        
+        public CloseSplineCommand() {
+            super(MainApplication.getLayerManager().getEditDataSet());
+        }
+
         @Override
         public boolean executeCommand() {
Index: /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/UndeleteNodeCommand.java
===================================================================
--- /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/UndeleteNodeCommand.java	(revision 33843)
+++ /applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/UndeleteNodeCommand.java	(revision 33844)
@@ -10,4 +10,5 @@
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.gui.MainApplication;
 
 class UndeleteNodeCommand extends Command {
@@ -16,4 +17,5 @@
 
     UndeleteNodeCommand(Node n) {
+        super(MainApplication.getLayerManager().getEditDataSet());
         this.n = n;
     }
