From d7ecc21251822f0c068a65acc3f81ff252e96537 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 27 Oct 2009 11:33:57 +0100 Subject: [PATCH] ENH : correct infinite loop when DeleteLayerByName --- Code/Visualization/otbLayerBasedModel.txx | 1 + 1 file changed, 1 insertion(+) diff --git a/Code/Visualization/otbLayerBasedModel.txx b/Code/Visualization/otbLayerBasedModel.txx index a7070a68e4..deab971ca6 100644 --- a/Code/Visualization/otbLayerBasedModel.txx +++ b/Code/Visualization/otbLayerBasedModel.txx @@ -124,6 +124,7 @@ LayerBasedModel<TLayer> found = true; } ++index; + ++it; } if(found) -- GitLab