]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourVOI.cxx
BUG interaction ROI-creation line, rectangle, circle,
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourVOI.cxx
index c37ceb89962bdebdc574f5c14f69486b92a85fea..55d64736a473973fe99aab4d9c2a1ff683025635 100644 (file)
@@ -126,7 +126,7 @@ void ContourVOI::Process()
 
        wxWidgetVOI* wxwidgetvoi = (wxWidgetVOI*)bbGetOutputWidget();
 
-       if(base !=NULL && img != NULL && _img != img && _base != base){
+       if(base !=NULL && img != NULL && _img != img){
 
                _img = img;
                _base = base;
@@ -137,7 +137,7 @@ void ContourVOI::Process()
        }
 
        
-       if (wxwidgetvoi!=NULL){
+       if (wxwidgetvoi!=NULL && _img!=NULL && _base != NULL){
                ContourVOIWidget* contourvoiwidget = wxwidgetvoi->GetContourVOIWidget();
                
                int voi[6];
@@ -178,6 +178,9 @@ void ContourVOI::bbUserConstructor()
        bbSetInputIn(NULL);
        bbSetOutputWidget(NULL);
 
+       bbSetInputIn(NULL);
+       bbSetInputwxVtkBaseView(NULL);
+
 }
 
 //------------------------------------------------------