Merge branch 'master' into Replace-automatic-conductors

This commit is contained in:
Laurent Trinques
2026-08-07 14:58:42 +02:00
committed by GitHub
101 changed files with 31833 additions and 21710 deletions
@@ -501,7 +501,12 @@ void DiagramEventAddElement::addElement()
}
m_diagram->addItem(m_element);
//Autonum the new element before pushing undo_object, so the counter
//change it triggers is part of the same undo macro as the element's
//own placement (one Ctrl+Z reverts both, instead of silently
//leaving the counter advanced).
element->setUpFormula(true, undo_object);
m_diagram -> undoStack().push(undo_object);
element->setUpFormula();
element->freezeNewAddedElement();
}