From e1bfcdeccf9884cdddf4f88cb45f2a88787b3df5 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Fri, 19 Feb 2010 02:51:52 +0000
Subject: [PATCH] if one coordinate is out of bounds, the whole cell is out of
 bounds

* No need to examine further following coordinates
* No need to duplicate the same error message
* No need to no-op using set.add(alread_added_item)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32816 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/XMLMatrix.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5Type/XMLMatrix.py b/product/ERP5Type/XMLMatrix.py
index e9de148ca0..2390ec602a 100644
--- a/product/ERP5Type/XMLMatrix.py
+++ b/product/ERP5Type/XMLMatrix.py
@@ -681,6 +681,7 @@ class XMLMatrix(Folder):
                   if coordinate >= len(base_item[i]):
                     addError("Cell %s is out of bound" % object_id)
                     to_delete_set.add(object_id)
+                    break
 
       if fixit and len(to_delete_set) > 0:
         self.manage_delObjects(list(to_delete_set))
-- 
2.30.9