Commit 05e07fba authored by Ben Boeckel's avatar Ben Boeckel

pqTransferFunctionWidget: use vtkMath::{Min,Max}

parent fae3b94c
Pipeline #11531 passed with stage
......@@ -49,6 +49,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "vtkContextView.h"
#include "vtkGenericOpenGLRenderWindow.h"
#include "vtkEventQtSlotConnect.h"
#include "vtkMath.h"
#include "vtkNew.h"
#include "vtkObjectFactory.h"
#include "vtkPiecewiseControlPointsItem.h"
......@@ -464,13 +465,13 @@ void pqTransferFunctionWidget::setCurrentPointPosition(double xpos)
{
double start_point[4];
this->Internals->ControlPointsItem->GetControlPoint(0, start_point);
xpos = std::max(start_point[0], xpos);
xpos = vtkMath::Max(start_point[0], xpos);
}
if (currentPid <= (numPts -1))
{
double end_point[4];
this->Internals->ControlPointsItem->GetControlPoint(numPts-1, end_point);
xpos = std::min(end_point[0], xpos);
xpos = vtkMath::Min(end_point[0], xpos);
}
double point[4];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment