Conductor: Paste a conductor reset the text

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3498 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-11-17 22:32:06 +00:00
parent f4bd29a5db
commit 46100f0d94

View File

@@ -224,6 +224,13 @@ void PasteDiagramCommand::redo() {
eti -> setPlainText("_");
}
}
//Reset the text of conductors
foreach (Conductor *c, content.conductorsToMove) {
ConductorProperties cp = c -> properties();
cp.text = c->diagram() ? c -> diagram() -> defaultConductorProperties.text : "_";
c -> setProperties(cp);
}
}
else {
// paste the elements