use area.geometry_prep for intersects

This commit is contained in:
Laura Klünder 2017-11-11 02:26:05 +01:00
parent 38240fcbde
commit 8bc5015caf

View file

@ -214,7 +214,7 @@ class AltitudeArea(LevelGeometryMixin, models.Model):
for subarea in (area, new_area):
spaces_before = subarea.spaces
subarea.spaces = set(space for space in original_spaces
if spaces[space].geometry.intersects(subarea.geometry))
if subarea.geometry_prep.intersects(spaces[space].geometry))
for space in spaces_before-subarea.spaces:
space_areas[space].remove(subarea)
for space in subarea.spaces-spaces_before: