From 46100f0d948b1dc17f1e231253def84180c79c6e Mon Sep 17 00:00:00 2001 From: blacksun Date: Mon, 17 Nov 2014 22:32:06 +0000 Subject: [PATCH] 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 --- sources/diagramcommands.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/diagramcommands.cpp b/sources/diagramcommands.cpp index b9c6d3483..b53dea4c4 100644 --- a/sources/diagramcommands.cpp +++ b/sources/diagramcommands.cpp @@ -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