mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
Bug fix : Conductor text with formula that contain %id isn't good when open project (variable %id is replaced by 0 in each folio)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4746 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -217,7 +217,8 @@ void DiagramEventAddElement::addElement()
|
||||
element -> setRotation(m_element -> rotation());
|
||||
m_diagram -> addItem(element);
|
||||
|
||||
QUndoCommand *undo_object = new AddItemCommand<Element *>(element, m_diagram, m_element -> pos());
|
||||
QUndoCommand *undo_object = new QUndoCommand(tr("Ajouter %1").arg(element->name()));
|
||||
new AddItemCommand<Element *>(element, m_diagram, m_element -> pos(), undo_object);
|
||||
|
||||
while (!element -> AlignedFreeTerminals().isEmpty() && m_diagram -> project() -> autoConductor())
|
||||
{
|
||||
@@ -232,8 +233,9 @@ void DiagramEventAddElement::addElement()
|
||||
ConductorAutoNumerotation can (conductor, m_diagram, undo_object);
|
||||
can.numerate();
|
||||
conductor->setSeq = true;
|
||||
if (m_diagram->freezeNewConductors() || m_diagram->project()->freezeNewConductors() )
|
||||
conductor->freeze_label = true;
|
||||
if (m_diagram->freezeNewConductors() || m_diagram->project()->freezeNewConductors()) {
|
||||
conductor->setFreezeLabel(true);
|
||||
}
|
||||
};
|
||||
m_diagram -> undoStack().push(undo_object);
|
||||
element->setSequential();
|
||||
|
||||
Reference in New Issue
Block a user