[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 ]


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


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/