]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pGraphicalFunction.cxx
#3144 creaMaracasVisu Bug New Normal - changeWx28to30
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pGraphicalFunction.cxx
index 7de96c458c2fe9bcb3224ccbb9bfa372c264a2f0..1a8cd58d65d4b66a55b8ec4d7037a49ae5263cec 100644 (file)
@@ -52,27 +52,27 @@ IMPLEMENT_CLASS(pGraphicalFunction, pPlotterLayer)
 pGraphicalFunction:: pGraphicalFunction(wxString name, int flags)
 {
        SetName(name);
-       showPointsF = false;
-       validPointRange = 5;
-       logicFunction = new pLogicalFunction ();
-       fromWindow=false;
-       factorZoom=1;
-       drawing=false;
-       editable=true;
-       ifActual=false;
-       zoomIn=false;
-       setOffsetX(0);
+       showPointsF             = false;
+       validPointRange         = 5;
+       logicFunction           = new pLogicalFunction ();
+       fromWindow                      = false;
+       factorZoom                      = 1;
+       drawing                         = false;
+       editable                        = true;
+       ifActual                        = false;
+       zoomIn                          = false;
+       setOffsetX(0) ;
        setOffsetY(0);
-       initialDrawingPoint=NULL;
-       finalDrawingPoint=NULL;
+       initialDrawingPoint     = NULL;
+       finalDrawingPoint       = NULL;
        //type=1 means that is going to be a piecewise function
-       _type=1;
-       xKSpline=NULL;
-       yKSpline=NULL;
-       offsetPixelX=0;
-       offsetPixelY=0;
-       xTraslation=0;
-       mType=DEFAULT;
+       _type                           = 1;
+       xKSpline                        = NULL;
+       yKSpline                        = NULL;
+       offsetPixelX            = 0;
+       offsetPixelY            = 0;
+       xTraslation                     = 0;
+       mType                           = DEFAULT;
        
 }
 
@@ -224,9 +224,9 @@ bool pGraphicalFunction::deletePointAt(int index)
 {
        bool added=logicFunction -> deletePointAt( index );
        if(!fromWindow)
-        setUp();
-       else
        {
+               setUp();
+       } else {
                logicFunction->setEndPoints();
                logicFunction->setStartPoints();
        }