mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Minor fix : In some case, add a conductor in an existing potential, with a formula, display the formula instead of the final numerotation.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4826 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1330,7 +1330,7 @@ void Conductor::setProperties(const ConductorProperties &property)
|
|||||||
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram());
|
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram());
|
||||||
m_properties.text = text;
|
m_properties.text = text;
|
||||||
}
|
}
|
||||||
else {
|
else if (m_properties.text.isEmpty()){
|
||||||
m_properties.text = m_properties.m_formula;
|
m_properties.text = m_properties.m_formula;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user