Commit da27a878 authored by Purves, Murray's avatar Purves, Murray
Browse files

Fixing issue with request of error data when none set in vtkPlotPointsErrorBars

parent b9a2ace2
......@@ -870,19 +870,24 @@ bool vtkPlotPointsErrorBars::UpdateTableCache(vtkTable *table)
this->YErrors = vtkFloatArray::New();
}
vtkDataArray *xErr = array[2];
switch (xErr->GetDataType())
if (xErr)
{
vtkTemplateMacro(CopyToXErrors(
this->XErrors, static_cast<VTK_TT *>(xErr->GetVoidPointer(0)),
xErr->GetNumberOfTuples(), this->ShiftScale));
switch (xErr->GetDataType())
{
vtkTemplateMacro(CopyToXErrors(
this->XErrors, static_cast<VTK_TT *>(xErr->GetVoidPointer(0)),
xErr->GetNumberOfTuples(), this->ShiftScale));
}
}
vtkDataArray *yErr = array[3];
switch (yErr->GetDataType())
if (yErr)
{
vtkTemplateMacro(CopyToYErrors(
this->YErrors, static_cast<VTK_TT *>(yErr->GetVoidPointer(0)),
yErr->GetNumberOfTuples(), this->ShiftScale));
switch (yErr->GetDataType())
{
vtkTemplateMacro(CopyToYErrors(
this->YErrors, static_cast<VTK_TT *>(yErr->GetVoidPointer(0)),
yErr->GetNumberOfTuples(), this->ShiftScale));
}
}
}
......
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