diff --git a/src/main/java/com/actelion/research/share/gui/editor/actions/BondBaseAction.java b/src/main/java/com/actelion/research/share/gui/editor/actions/BondBaseAction.java index 1a516501..27a80056 100644 --- a/src/main/java/com/actelion/research/share/gui/editor/actions/BondBaseAction.java +++ b/src/main/java/com/actelion/research/share/gui/editor/actions/BondBaseAction.java @@ -79,6 +79,10 @@ public void onChangeBond(int bond) public boolean onMouseUp(IMouseEvent evt) { + // Ignore event if the action didn't start in the editor. + if (origin == null) { + return false; + } boolean ok = true; GenericPoint pt = new GenericPoint(evt.getX(), evt.getY());