mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 06:20:53 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user