From: Eduardo Davila Date: Fri, 21 Sep 2012 12:32:15 +0000 (+0000) Subject: BUG 1610 X-Git-Tag: v1.0.4~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7bd3d64a6f2821c1755fbd008128ff2af4e829a7;p=creaMaracasVisu.git BUG 1610 Refresh to long after reading N points. BoxChange just at the end of the reading. --- diff --git a/bbtk/src/bbmaracasvisuShowNPoints.cxx b/bbtk/src/bbmaracasvisuShowNPoints.cxx index 25debba..2a7fe44 100644 --- a/bbtk/src/bbmaracasvisuShowNPoints.cxx +++ b/bbtk/src/bbmaracasvisuShowNPoints.cxx @@ -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(); }