diff --git a/Fltk/classificationEditor.cpp b/Fltk/classificationEditor.cpp index c11971d98fa688c8eb0e11b898a5421d5f95850b..fbdb4705b04aaf66f33d73713cb616614b52fe38 100644 --- a/Fltk/classificationEditor.cpp +++ b/Fltk/classificationEditor.cpp @@ -45,6 +45,7 @@ static void ElementsSelectedMode(classificationEditor *e) e->_togbuttons[CLASSTOGBUTTON_HIDE]->deactivate(); } +// we should static void class_selectgface_cb(Fl_Widget *w, void *data) { classificationEditor *e = (classificationEditor*)data; @@ -338,6 +339,9 @@ static void class_color_cb(Fl_Widget* w, void* data) } } + if ( !tris.size() )return; + + connectTriangles(tris); {