- Fix undo issues over features.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-04 01:06:50 -03:00
parent 1efa24f2aa
commit 9ab4c4975c
3 changed files with 10 additions and 4 deletions

View File

@@ -40,9 +40,7 @@ mindplot.commands.RemoveFeatureFromTopicCommand = new Class({
var topic = commandContext.findTopics(this._topicId)[0];
var feature = this._oldFeature;
var newFeature = topic.addFeature(feature.getType(), feature.getAttributes());
this._featureId = newFeature.getModel().getId();
topic.addFeature(feature.getType(), feature.getAttributes(), this._featureId);
this._oldFeature = null;
}
});