change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / RelationMemberEditor.as
index 92ce619a84695db9f56f54c98397482ef6579a6a..9b350528a4ba8ad4ff7df8a71ab21fe490b1ba73 100644 (file)
@@ -53,7 +53,7 @@ package net.systemeD.potlatch2.mapfeatures.editors {
       
       public function addMember(relation:Relation, role:String):void {
           if (_entity != null && !_entity.hasParent(relation))
-              relation.appendMember(new RelationMember(_entity, role));
+              relation.appendMember(new RelationMember(_entity, role), MainUndoStack.getGlobalStack().addAction);
       }
 
       public function set factory(factory:RelationMemberEditorFactory):void {