From 8a7d02248636fa215fee2acf0ded6b350d1eb013 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sun, 21 Apr 2013 13:55:51 +0000 Subject: [PATCH] remove needless code git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2122 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/conductorautonumerotation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sources/conductorautonumerotation.cpp b/sources/conductorautonumerotation.cpp index 0c43ba268..70b1feedd 100644 --- a/sources/conductorautonumerotation.cpp +++ b/sources/conductorautonumerotation.cpp @@ -50,6 +50,7 @@ void ConductorAutoNumerotation::setConductor(Conductor *c) { conductor_ = c; diagram_ = c -> diagram(); conductor_list = c -> relatedPotentialConductors(); + if (strategy_) delete strategy_; } /** @@ -139,8 +140,8 @@ void ConductorAutoNumerotation::removeNum_ofDiagram() { QList > potential_list = diagram_ -> potentials(); //Browse all potentials and set the default text for (int i=0; i < potential_list.size(); i++) { - ConductorAutoNumerotation can (potential_list.at(i).toList().first()); - can.applyText(diagram_ -> defaultConductorProperties.text); + setConductor (potential_list.at(i).toList().first()); + applyText (diagram_ -> defaultConductorProperties.text); } }