From 7bd3d64a6f2821c1755fbd008128ff2af4e829a7 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 21 Sep 2012 12:32:15 +0000 Subject: [PATCH] BUG 1610 Refresh to long after reading N points. BoxChange just at the end of the reading. --- bbtk/src/bbmaracasvisuShowNPoints.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.45.1