From 6b25b3ae4d38a14a7abf576d9b106739147470e6 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Thu, 7 Aug 2008 15:14:57 +0000
Subject: [PATCH] maj appli de segmentation

---
 Code/FeatureExtraction/otbSimplifyPathListFilter.txx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Code/FeatureExtraction/otbSimplifyPathListFilter.txx b/Code/FeatureExtraction/otbSimplifyPathListFilter.txx
index fe3e708514..859989d44b 100644
--- a/Code/FeatureExtraction/otbSimplifyPathListFilter.txx
+++ b/Code/FeatureExtraction/otbSimplifyPathListFilter.txx
@@ -84,6 +84,9 @@ namespace otb
     // input/output wiring
     PathListConstPointerType inputPtr = this->GetInput();
     PathListPointerType outputPtr = this->GetOutput();
+    
+    // Reset the output list in case of multiple updates
+    outputPtr->Clear();
 
     // path iterator typedef
     typedef typename PathListType::ConstIterator PathIteratorType;
-- 
GitLab