bool hasPrevPoint = movingPointIndex > 0;
bool hasNextPoint = movingPointIndex < showedColorPoints.size()-1;
bool hasPrevPoint = movingPointIndex > 0;
bool hasNextPoint = movingPointIndex < showedColorPoints.size()-1;
pColorPoint * nextPoint = hasNextPoint ? showedColorPoints[movingPointIndex+1]: NULL;
if ( hasPrevPoint && prevPoint!=NULL )
pColorPoint * nextPoint = hasNextPoint ? showedColorPoints[movingPointIndex+1]: NULL;
if ( hasPrevPoint && prevPoint!=NULL )
- 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);
/**
* 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
/**
* 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