From a04a401ade285cfd26d439663e3e981f71b7f660 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 20 Jul 2022 10:39:24 +0200 Subject: [PATCH] #3485 ShowNPionts for Multiple Groups --- .../wxWindows/widgets/WidgetShowNPoints.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 } //------------------------------------------------------------------------ -- 2.47.1