mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Guard null pointer access
This commit is contained in:
1 parent
147c4f752f
commit
70f16eae27
1 file changed
+4
-1
@@ -883,10 +883,13 @@ void RimGridCrossPlotCurveSet::exportFormattedData(RifEclipseDataTableFormatter&
|
|||||||
void RimGridCrossPlotCurveSet::triggerPlotNameUpdateAndReplot()
|
void RimGridCrossPlotCurveSet::triggerPlotNameUpdateAndReplot()
|
||||||
{
|
{
|
||||||
RimGridCrossPlot* parent;
|
RimGridCrossPlot* parent;
|
||||||
this->firstAncestorOrThisOfTypeAsserted(parent);
|
this->firstAncestorOrThisOfType(parent);
|
||||||
|
if (parent)
|
||||||
|
{
|
||||||
parent->updateCurveNamesAndPlotTitle();
|
parent->updateCurveNamesAndPlotTitle();
|
||||||
parent->reattachCurvesToQwtAndReplot();
|
parent->reattachCurvesToQwtAndReplot();
|
||||||
parent->updateConnectedEditors();
|
parent->updateConnectedEditors();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user