]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx
#2490 creaMaracasVisu Feature New High - Histogram Interaction
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / pColorBar.cxx
index be5e98aa1047d60e3e8e1f95bfbf7091461c8661..68874cc645a63a9ae8c92f68008390e21659da1c 100644 (file)
@@ -207,7 +207,7 @@ pColorBar :: ~pColorBar()
                                        bool hasPrevPoint = movingPointIndex > 0;
                                        bool hasNextPoint = movingPointIndex < showedColorPoints.size()-1;
 
-                                       pColorPoint * prevPoint =  hasPrevPoint? showedColorPoints[movingPointIndex-1]: NULL; 
+                                       pColorPoint * prevPoint = hasPrevPoint? showedColorPoints[movingPointIndex-1]: NULL; 
                                        pColorPoint * nextPoint = hasNextPoint ? showedColorPoints[movingPointIndex+1]: NULL;
 
                                        if ( hasPrevPoint && prevPoint!=NULL )
@@ -409,15 +409,15 @@ pColorBar :: ~pColorBar()
        */
        void pColorBar :: onDeleteColorPoint ( wxCommandEvent& anEvent )
        {
-               bool deletedPoint = false;
-               double real_x = getOrientation() ? convertToRealValue( clickedX ) : convertToRealValue( clickedY );
-               deletedPoint = deleteColorPoint(real_x);
+               bool            deletedPoint            = false;
+               double  real_x                          = getOrientation() ? convertToRealValue( clickedX ) : convertToRealValue( clickedY );
+                                       deletedPoint            = deleteColorPoint(real_x);
                // Inform deletedPoint event
                if ( deletedPoint )
                {
                        //RefreshForce();
                        createAndSendEvent( wxEVT_REMOVED_POINT );                      
-               }
+               } //if
        }
 
                /**
@@ -434,8 +434,10 @@ pColorBar :: ~pColorBar()
                {
                        //RefreshForce();
                        createAndSendEvent( wxEVT_CHANGED_POINT );                      
-               }
+               } // if
        }
+
+
        /**
        * Reacts to the cntID_TRIANGLES_UP wxCommandEvent and changes the assigned figure to -triangles up- for the color points of the color bar.
        * param & anEvent The wxCommandEvent actioned event