From: Eduardo DAVILA Date: Wed, 20 Jul 2022 08:39:24 +0000 (+0200) Subject: #3485 ShowNPionts for Multiple Groups X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Fheads%2Fvtk8itk5wx3-macos;p=creaMaracasVisu.git #3485 ShowNPionts for Multiple Groups --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx index 74d9e6f..091c02e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx @@ -41,6 +41,7 @@ wxNotebook* bookGroupManager = NULL; wxPanel* panel = NULL; wxPanel* panel2 = NULL; + txtNrCollections = NULL; bookSetPoints = new wxNotebook(panelParent, -1, @@ -48,7 +49,7 @@ wxDefaultSize, wxNB_TOP ); panel = new wxPanel(bookSetPoints); - + txtNrCollections = NULL; // Group Manager if (mtype==4) @@ -1010,10 +1011,13 @@ void WidgetShowNPoints::RefreshColourCollection() //------------------------------------------------------------------------ void WidgetShowNPoints::RefreshCollectionText() { - wxString strTmp; - strTmp.Printf(_T("%d / %d "), (int)mActualCollection+1, (int)lstModelShowNPoints.size() ); - txtNrCollections->SetLabel( strTmp ); - SetOutputBox(); + if ((mtype==4) && (txtNrCollections!=NULL)) // Just for Collection interface + { + wxString strTmp; + strTmp.Printf(_T("%d / %d "), (int)mActualCollection+1, (int)lstModelShowNPoints.size() ); + txtNrCollections->SetLabel( strTmp ); + SetOutputBox(); + } // if mtype 4 } //------------------------------------------------------------------------