[command] SetAttribute: use getExportValue to store previous value

keep track of link expressions
This commit is contained in:
Yann Lanthony 2018-06-07 19:48:37 +02:00 committed by Yann Lanthony
parent 3ad2146e06
commit 27555b1e7f

View file

@ -133,7 +133,7 @@ class SetAttributeCommand(GraphCommand):
super(SetAttributeCommand, self).__init__(graph, parent)
self.attrName = attribute.fullName()
self.value = value
self.oldValue = attribute.getPrimitiveValue(exportDefault=True)
self.oldValue = attribute.getExportValue()
self.setText("Set Attribute '{}'".format(attribute.fullName()))
def redoImpl(self):