mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Guard null pointer use
This commit is contained in:
1 parent
b9f1f4b1d6
commit
e8885065ea
1 file changed
+3
-1
@@ -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