Commit 9e88b095 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

return empty list for empty input.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33515 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2c05052
...@@ -51,6 +51,8 @@ class MirrorMovementGroup(MovementGroup): ...@@ -51,6 +51,8 @@ class MirrorMovementGroup(MovementGroup):
def _separate(self, movement_list): def _separate(self, movement_list):
# record if mirrored or not in simulation movements. # record if mirrored or not in simulation movements.
mapping_dict = {} mapping_dict = {}
if len(movement_list) == 0:
return []
for movement in movement_list: for movement in movement_list:
if _isMirrored(movement): if _isMirrored(movement):
applied_rule = movement.getParentValue() applied_rule = movement.getParentValue()
......
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