mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
QwtPlot::axisWidget() returns NULL for an axis id that is not valid for a given plot. RiuMultiPlotPage::alignAxis dereferenced the returned QwtScaleWidget without a null check, causing a segmentation fault when a plot in the grid does not have the queried axis. Guard the pointer in both alignment loops, matching the existing null-check style in the function.