[qet] qet/qet: [4826] Minor fix : In some case, add a conductor in an existing potential, with a formula, display the formula instead of the final numerotation. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
- To: qet@xxxxxxxxxxxxxxxxxxx
- Subject: [qet] qet/qet: [4826] Minor fix : In some case, add a conductor in an existing potential, with a formula, display the formula instead of the final numerotation.
- From: subversion@xxxxxxxxxxxxx
- Date: Fri, 30 Dec 2016 21:15:19 +0100
Revision: 4826
Author: blacksun
Date: 2016-12-30 21:15:18 +0100 (Fri, 30 Dec 2016)
Log Message:
-----------
Minor fix : In some case, add a conductor in an existing potential, with a formula, display the formula instead of the final numerotation.
Modified Paths:
--------------
trunk/sources/qetgraphicsitem/conductor.cpp
Modified: trunk/sources/qetgraphicsitem/conductor.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/conductor.cpp 2016-12-28 10:03:47 UTC (rev 4825)
+++ trunk/sources/qetgraphicsitem/conductor.cpp 2016-12-30 20:15:18 UTC (rev 4826)
@@ -1330,7 +1330,7 @@
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram());
m_properties.text = text;
}
- else {
+ else if (m_properties.text.isEmpty()){
m_properties.text = m_properties.m_formula;
}
}