Ignore:
Timestamp:
Dec 19, 2025, 11:29:38 PM (7 weeks ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
25aa214
Parents:
29ba9a
git-author:
Frederik Heber <frederik.heber@…> (11/16/25 11:12:52)
git-committer:
Frederik Heber <frederik.heber@…> (12/19/25 23:29:38)
Message:

Actions relying on BondGraph fail if not bond table is loaded.

  • this is to ensure to not stumble over missing optimal bond lengths from the table, like with StretchBondAction.
  • TESTFIX: All regression tests that use these actions need to load the bond-table now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/BondifyAction.cpp

    r29ba9a rd2be22  
    214214  // ensure we have one selected atom
    215215  World &world = World::getInstance();
    216   const BondGraph &BG = *world.getBondGraph();
     216  const BondGraph &BG = *world.getBondGraph(); 
    217217
    218218  // check precondition
     219  if (!BG.IsBondLengthTableLoaded()) {
     220    STATUS("BondLength table has not been loaded.");
     221    return Action::failure;
     222  }
    219223  const std::vector<atom *> atoms = world.getSelectedAtoms();
    220224  if (atoms.size() != 1) {
Note: See TracChangeset for help on using the changeset viewer.