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:
blacksun
2016-12-30 20:15:18 +00:00
parent 14f02d4ed1
commit 1b8b901ef6

View File

@@ -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;
} }
} }