]> Creatis software - creaMaracasVisu.git/commitdiff
BUG 1610
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Sep 2012 12:32:15 +0000 (12:32 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Sep 2012 12:32:15 +0000 (12:32 +0000)
Refresh to long after reading N points. BoxChange just at the end of the reading.

bbtk/src/bbmaracasvisuShowNPoints.cxx

index 25debba998835ec2288161ba90eb76b10d9a49d3..2a7fe44f86de90eef06775506972dce26ff8d446 100644 (file)
@@ -292,7 +292,6 @@ void WidgetShowNPoints::AddPoint(int x, int y, int z, std::string label)
        lstActorsText.push_back(textActor);
 
        RefreshPoint(lstPointsX.size()-1);
-       SetOutputBox();
 }
 
 //------------------------------------------------------------------------
@@ -307,6 +306,7 @@ void WidgetShowNPoints::OnAddPoint (wxCommandEvent& event)
        if (this->renderer!=NULL){
                if (mpoint.size()==3){
                        AddPoint(mpoint[0],mpoint[1],mpoint[2], (const char*) ( textCtrl->GetValue().mb_str() ) );
+                       SetOutputBox();
                } else {//mpoint.size
                        printf("creaMaracasVisu::ShowNPoints (not match point) \n");
                }
@@ -420,6 +420,7 @@ void WidgetShowNPoints::OnAddPoint (wxCommandEvent& event)
                                        if (strcmp(chartmp,"<_VOID_>")==0) { strcpy(chartmp,""); }
                                        AddPoint(x,y,z, chartmp );
                                }
+                               SetOutputBox();
                                fclose(ff);
                        } else {   // else ff
                                printf("WidgetShowNPoints::OnLoadPoints  ...Error... reading file");
@@ -469,6 +470,7 @@ void WidgetShowNPoints::OnAddPoint (wxCommandEvent& event)
                {
                        id=0;
                        AddPoint(0,0,0,"");
+                       SetOutputBox();
                }