]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/WidgetShowNPoints.cxx
#3524 TransformWidget2
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / WidgetShowNPoints.cxx
index cd1aace00afb8165a6fd981ba63a5f97a474dac7..f42c078d8d738fae2f0f21a1b5481395ba92b30b 100644 (file)
@@ -29,7 +29,6 @@
   WidgetShowNPoints::WidgetShowNPoints(wxWindow *parent, int type)
     : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
   {
-      printf("WidgetShowNPoints::WidgetShowNPoints Start\n");
       aux_mesh      =   NULL;
       aux_mesh_spc.push_back(1);
       aux_mesh_spc.push_back(1);
       
     mtype                                                      = type;
     SetType(mtype);
-    wxPanel*    panelParent         = this;
-    wxSizer*    sizer                          = NULL;
-    wxSizer*    MNPsizer            = NULL;
-    wxNotebook* bookSetPoints       = NULL;
-    wxNotebook* bookGroupManager    = NULL;
-    wxPanel*    panel               = NULL;
-    wxPanel*    panel2              = NULL;
-                txtNrCollections    = NULL;
-                txtNrPoints         = NULL;
-      bookSetPoints     = new wxNotebook(panelParent,
-                          -1,
-                          wxDefaultPosition,
-                          wxDefaultSize,
-                          wxNB_TOP );
-      panel  = new wxPanel(bookSetPoints);
+    wxPanel*        panelParent         = this;
+    wxSizer*        sizer                              = NULL;
+    wxSizer*        MNPsizer            = NULL;
+    wxNotebook*     bookSetPoints       = NULL;
+    wxNotebook*     bookGroupManager    = NULL;
+    wxPanel*        panel               = NULL;
+    wxPanel*        panel2              = NULL;
+                    txtNrCollections    = NULL;
+                    txtNrPoints         = NULL;
+                cbVisuActualCollection  = NULL;
+                    bookSetPoints       = new wxNotebook(panelParent, -1, wxDefaultPosition, wxDefaultSize, wxNB_TOP );
+                    panel               = new wxPanel(bookSetPoints);
 
       wxSize sizeButton( 50  ,  -1 );
       wxSize sizeSlider( 90  ,  -1 );
             panelParent->Layout();
         } // if sizer
     } // if mtype 4
-      
-      printf("WidgetShowNPoints::WidgetShowNPoints End\n");
-
 }
 
 //------------------------------------------------------------------------
@@ -1708,7 +1701,7 @@ void WidgetShowNPoints::RefreshColourCollection()
     {
         lstViewShowNPoints[i] -> mcolour    = colourAll;
         lstViewShowNPoints[i] -> ratioRadio = 1;
-        if (cbVisuActualCollection->GetValue()==true)
+        if ((cbVisuActualCollection!=NULL) && (cbVisuActualCollection->GetValue()==true))
         {
             lstViewShowNPoints[i] -> mopacity   = 0.0;
         } else {