Draw Tool Crash: H-H

Bugs item #1896409, was opened at 2008-02-18 21:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=1896409&group_id=165310

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Vandermeersch (timvdm)
Assigned to: Tim Vandermeersch (timvdm)
Summary: Draw Tool Crash: H-H

Initial Comment:
Drawing H-H while adjust hydrogens is on crashes avogadro. The crash happens in AddAtomDrawCommand::redo(), Delete/Add Hydrogens on one H caused the deletion of the other H atom (and bond), this atom was later used to do Delete/Add Hydrogens again --> crash.
I’ll put some if(!atom->IsHydrogen()) checks in drawcommand.cpp to prevent this.


You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=1896409&group_id=165310