Skip to content

Commit

Permalink
fix: do not crash when drag-and-drop comes from toolbar (#195)
Browse files Browse the repository at this point in the history
Closes: #194
  • Loading branch information
targos authored Feb 22, 2024
1 parent afaae1e commit f10c782
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
*
*/

@Deprecated
public class SDFileMolecule extends StereoMolecule implements java.io.Serializable
{
static final long serialVersionUID = 0x2003CAFE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f10c782

Please sign in to comment.