constraint: fix auto labeling

This commit is contained in:
Zheng, Lei 2018-07-28 13:04:22 +08:00
parent 05f476c9e4
commit fb707d7185

View File

@ -454,7 +454,7 @@ class Constraint(ProxyType):
if super(Constraint,mcs).onChanged(obj,prop):
try:
if obj.Name==obj.Label or \
mcs.getType(utils.getLabel(obj)):
mcs.getType(str(utils.getLabel(obj))):
obj.Label = mcs.getTypeName(obj)
except Exception as e:
logger.debug('auto constraint label failed: {}'.format(e))