mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user