Commit ba1f2769 authored by Allison Vacanti's avatar Allison Vacanti
Browse files

Fix new test failure.

The vtkControlPointItems now need XAxis and YAxis set.
parent fd1b3364
......@@ -14,6 +14,7 @@
=========================================================================*/
// Charts includes
#include "vtkChartXY.h"
#include "vtkContextInteractorStyle.h"
#include "vtkContextScene.h"
#include "vtkControlPointsItem.h"
......@@ -82,8 +83,8 @@ int TestControlPointsItemEvents(int, char*[])
vtkNew<vtkColorTransferControlPointsItem> controlPoints;
controlPoints->SetColorTransferFunction(transferFunction);
// vtkNew<vtkChartXY> chart;
// chart->AddPlot(controlPoints);
vtkNew<vtkChartXY> chart;
chart->AddPlot(controlPoints);
vtkNew<vtkContextScene> scene;
scene->AddItem(controlPoints);
......
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