fix bug about default conductor rotation text with an existing potential

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2206 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-06-04 23:11:05 +00:00
parent e58438ade4
commit f8eb7ac616

View File

@@ -136,7 +136,7 @@ void ConductorAutoNumerotation::numeratePotential() {
foreach (const Conductor *cc, conductor_list) strl<<(cc->text()); foreach (const Conductor *cc, conductor_list) strl<<(cc->text());
//the texts is identicals //the texts is identicals
if (eachIsEqual(strl)) { if (eachIsEqual(strl)) {
ConductorProperties cp; ConductorProperties cp = conductor_ -> properties();
cp.text = strl.at(0); cp.text = strl.at(0);
conductor_ -> setProperties(cp); conductor_ -> setProperties(cp);
conductor_ -> setText(strl.at(0)); conductor_ -> setText(strl.at(0));