mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix : clear the element texts when paste an element with the option "Do not store the labels of items in the copy paste" enabled
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5385 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -103,10 +103,12 @@ void PasteDiagramCommand::redo()
|
||||
if (settings.value("diagramcommands/erase-label-on-copy", true).toBool())
|
||||
{
|
||||
//Reset the information about the label, the comment and location
|
||||
e -> rElementInformations().addValue("formula", "");
|
||||
e -> rElementInformations().addValue("label", "");
|
||||
e -> rElementInformations().addValue("comment", "");
|
||||
e -> rElementInformations().addValue("location", "");
|
||||
DiagramContext dc = e->elementInformations();
|
||||
dc.addValue("formula", "");
|
||||
dc.addValue("label", "");
|
||||
dc.addValue("comment", "");
|
||||
dc.addValue("location", "");
|
||||
e->setElementInformations(dc);
|
||||
|
||||
//Reset the text of conductors
|
||||
const QList <Conductor *> conductors_list = content.m_conductors_to_move;
|
||||
|
||||
Reference in New Issue
Block a user