X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2FpColorBar.cxx;h=68874cc645a63a9ae8c92f68008390e21659da1c;hb=25e3adf442d6a8d357d52410267445c54426c525;hp=be5e98aa1047d60e3e8e1f95bfbf7091461c8661;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx index be5e98a..68874cc 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pColorBar.cxx @@ -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