mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-03 04:40:49 -06: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 )
|
for ( auto riv : viewsForSnapshot )
|
||||||
{
|
{
|
||||||
|
RiuViewer* viewer = riv->viewer();
|
||||||
|
if ( !viewer ) continue;
|
||||||
|
|
||||||
RiaApplication::instance()->setActiveReservoirView( riv );
|
RiaApplication::instance()->setActiveReservoirView( riv );
|
||||||
|
|
||||||
RiuViewer* viewer = riv->viewer();
|
|
||||||
Riu3DMainWindowTools::setActiveViewer( viewer->layoutWidget() );
|
Riu3DMainWindowTools::setActiveViewer( viewer->layoutWidget() );
|
||||||
|
|
||||||
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();
|
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();
|
||||||
|
|||||||
Reference in new issue
Block a user