An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit efd8bfe4 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Made UpdateLayout virtual.

Also fixed a small bug - check we have a scene before trying to mark it
dirty. This caused issues with the new inheritance pattern the the 2D
histogram chart.
parent d028eb14
......@@ -827,7 +827,10 @@ vtkIdType vtkChartXY::AddPlot(vtkPlot * plot)
// Ensure that the bounds are recalculated
this->PlotTransformValid = false;
// Mark the scene as dirty
if (this->Scene)
return plotIndex;
......@@ -187,7 +187,7 @@ protected:
// Update the layout of the chart, this may require the vtkContext2D in order
// to get font metrics etc. Initially this was added to resize the charts
// according in response to the size of the axes.
bool UpdateLayout(vtkContext2D* painter);
virtual bool UpdateLayout(vtkContext2D* painter);
// Description:
// The grid for the chart.
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