mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 00:20:16 -05:00
#13176 Use guarded pointers for highlighted curves
This commit is contained in:
1 parent
7c8aadcd60
commit
b6f0164de7
3 files changed
+17
-13
No files matched your search
@@ -1846,7 +1846,9 @@ void RimSummaryMultiPlot::updateReadOutLines( double qwtTimeValue, double yValue
|
||||
{
|
||||
for ( auto highlightCurve : plotWidget->highlightedCurves() )
|
||||
{
|
||||
if ( auto summaryCurve = dynamic_cast<RimSummaryCurve*>( highlightCurve ) )
|
||||
if ( highlightCurve.isNull() ) continue;
|
||||
|
||||
if ( auto summaryCurve = dynamic_cast<RimSummaryCurve*>( highlightCurve.p() ) )
|
||||
{
|
||||
summaryCurves.push_back( summaryCurve );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user