Conductor : reset conductor path also reset conductor text item position

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3381 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-19 10:08:55 +00:00
parent 58c280be2a
commit 8a2c0a2d36
2 changed files with 19 additions and 10 deletions

View File

@@ -1633,8 +1633,9 @@ ConductorProfilesGroup Conductor::profiles() const {
}
/**
@param cpg Les nouveaux profils de ce conducteur
*/
* @brief Conductor::setProfiles
* @param cpg : the new profils of conductor
*/
void Conductor::setProfiles(const ConductorProfilesGroup &cpg) {
conductor_profiles = cpg;
if (conductor_profiles[currentPathType()].isNull()) {
@@ -1644,7 +1645,7 @@ void Conductor::setProfiles(const ConductorProfilesGroup &cpg) {
updateConductorPath(terminal1 -> dockConductor(), terminal1 -> orientation(), terminal2 -> dockConductor(), terminal2 -> orientation());
modified_path = true;
}
if (type() == ConductorProperties::Multi) {
if (properties().type == ConductorProperties::Multi) {
calculateTextItemPosition();
}
}