Commit 845246f9 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert misunderstood change.

obj._propertyMap() will put property twice in list if it is local property and
it is defined in property sheets.
parent da8316f8
......@@ -94,7 +94,7 @@ class PropertyTypeValidity(Constraint):
if fixit and \
property_id in [x['id'] for x in
getattr(obj, '_local_properties', ())] and \
len([x for x in obj._propertyMap() if x['id'] == property_id]) > 0:
len([x for x in obj._propertyMap() if x['id'] == property_id]) > 1:
obj._local_properties = tuple([x for x in obj._local_properties
if x['id'] != property_id])
error_list.append(self._generateError(obj,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment