]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewContour.cpp
#3144 creaMaracasVisu Bug New Normal - changeWx28to30
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewContour.cpp
index bddf6aa143923215b8b1ac9036a5dd94384b355c..0c082a20c818ea232c9fca2db8a25d3d966f970d 100644 (file)
@@ -87,7 +87,6 @@ void manualViewContour::Open(FILE *pFile)
 void manualViewContour::RefreshContour() // virtual
 {
        int i,np,nps;
-
 //JSTG 25-02-08 --------------------
        //double t,delta, x,y,z;
        double x,y,z;
@@ -146,9 +145,9 @@ void manualViewContour::RefreshContour() // virtual
        //--------------------------------------------------------------
                // EED 27 sep 2006
                //                      _pts->SetPoint(i, x,y,z );
-                                       xx=x*_spc[0];
-                                       yy=y*_spc[1];
-                                       zz=z*_spc[2];
+                                       xx = x*_spc[0];
+                                       yy = y*_spc[1];
+                                       zz = z*_spc[2];
                                        _pts->SetPoint(i,xx,yy,zz );
 
                            //EED 27 Juin 2012
@@ -157,7 +156,6 @@ void manualViewContour::RefreshContour() // virtual
                                        if (yy < _minY) { _minY = yy; }
                                        if (xx > _maxX) { _maxX = xx; }
                                        if (yy > _maxY) { _maxY = yy; }
-                               
                                }// for
                        }else{
                                        _pts->SetPoint(0, 0 , 0 , 0);
@@ -172,7 +170,10 @@ void manualViewContour::RefreshContour() // virtual
        _maxY=_maxY+1.0;
 
 //EED 2017-03-02
-       _pts->Modified();
+       if (_pts!=NULL) 
+       {
+               _pts->Modified();
+       }
 }
 
 // ----------------------------------------------------------------------------