From 6c3bf5ef06cd6c00fe17c85ee62a567bdffbfbd4 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Thu, 9 Dec 2021 09:32:53 -0700 Subject: [PATCH] There were several extra copies of the rocket made in the course of undo() -- they looked like debug code that had been left in. Removed now. --- core/src/net/sf/openrocket/document/OpenRocketDocument.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/document/OpenRocketDocument.java b/core/src/net/sf/openrocket/document/OpenRocketDocument.java index b62c7938b..3cf2a78a7 100644 --- a/core/src/net/sf/openrocket/document/OpenRocketDocument.java +++ b/core/src/net/sf/openrocket/document/OpenRocketDocument.java @@ -727,9 +727,7 @@ public class OpenRocketDocument implements ComponentChangeListener { } rocket.checkComponentStructure(); - undoHistory.get(undoPosition).checkComponentStructure(); - undoHistory.get(undoPosition).copyWithOriginalID().checkComponentStructure(); - rocket.loadFrom(undoHistory.get(undoPosition).copyWithOriginalID()); + rocket.loadFrom(undoHistory.get(undoPosition)); rocket.checkComponentStructure(); }