Fix an issue with the positions of InstanceNames that used the original position_modifier.

This commit is contained in:
Dave Halter committed 2015-02-02 02:29:39 +01:00
1 parent c58cdbbf9b
commit a4bd412801
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -158,9 +158,7 @@ class Leaf(Base):
@start_pos.setter
def start_pos(self, value):
# TODO I think this is wrong, because the position_modifier.line needs
# to be looked at as well. Probably it needs to be substracted.
self._start_pos = value
self._start_pos = value[0] - self.position_modifier.line, value[1]
@property
def end_pos(self):