mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-26 21:27:15 -05:00
Guard null pointer use
This commit is contained in:
@@ -114,9 +114,11 @@ void RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( const QS
|
||||
|
||||
for ( auto riv : viewsForSnapshot )
|
||||
{
|
||||
RiuViewer* viewer = riv->viewer();
|
||||
if ( !viewer ) continue;
|
||||
|
||||
RiaApplication::instance()->setActiveReservoirView( riv );
|
||||
|
||||
RiuViewer* viewer = riv->viewer();
|
||||
Riu3DMainWindowTools::setActiveViewer( viewer->layoutWidget() );
|
||||
|
||||
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();
|
||||
|
||||
Reference in New Issue
Block a user