From 947e516301254b52a0c20c19245b99396f5344f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Remacle=20=28students=29?=
 <jean-francois.remacle@uclouvain.be>
Date: Fri, 3 Jul 2009 10:32:47 +0000
Subject: [PATCH] *** empty log message ***

---
 Fltk/classificationEditor.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Fltk/classificationEditor.cpp b/Fltk/classificationEditor.cpp
index beed453202..c7dd3eacf7 100644
--- a/Fltk/classificationEditor.cpp
+++ b/Fltk/classificationEditor.cpp
@@ -419,6 +419,9 @@ static void class_color_cb(Fl_Widget* w, void* data)
 	      vE = v1;
 	      i=-1;
 	    }
+
+	    if (it == segments.end()) break;
+
 	  }
 
 	  if (vB == vE) break;
-- 
GitLab