Commit c2b6616da93e5ac7b3d4c7957b9a677e2b6154ed
1 parent
897858c8
Exists in
master
and in
100 other branches
Fix bug in drawAdditionalObjects
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/ParamOutputImpl/Plot/PanelPlotOutput.cc
... | ... | @@ -2597,6 +2597,9 @@ void PanelPlotOutput::drawAdditionalObjects() { |
2597 | 2597 | boost::shared_ptr<Axis> lXAxis(_panel->getAxis(lSeries.getXAxisId())); |
2598 | 2598 | boost::shared_ptr<Axis> lYAxis(_panel->getAxis(lSeries.getYAxisId())); |
2599 | 2599 | |
2600 | + if ((lXAxis == nullptr) || (lYAxis == nullptr)) | |
2601 | + continue; | |
2602 | + | |
2600 | 2603 | Range lXRange = lXAxis->getRange(); |
2601 | 2604 | Range lYRange = lYAxis->getRange(); |
2602 | 2605 | |
... | ... | @@ -2619,7 +2622,6 @@ void PanelPlotOutput::drawAdditionalObjects() { |
2619 | 2622 | // Draw curvePlots |
2620 | 2623 | for (auto curvePlot : _panel->_curvePlots) |
2621 | 2624 | drawCurvePlot(*curvePlot); |
2622 | - | |
2623 | 2625 | } |
2624 | 2626 | |
2625 | 2627 | void PanelPlotOutput::setPlStream(std::shared_ptr<plstream>& pls) { | ... | ... |