Skip to content

Commit b598e6e

Browse files
committed
Fixed a crash issue
1 parent e812711 commit b598e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freeview/RenderView3D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void RenderView3D::DoUpdateRASPosition( int posX, int posY, bool bCursor, bool b
553553
picker->GetPickPosition( pos );
554554
prop = picker->GetViewProp();
555555
LayerMRI* mri_sel = (LayerMRI*)lc_mri->HasProp(prop);
556-
if (mri_sel->GetProperty()->GetShowAsContour())
556+
if (mri_sel && mri_sel->GetProperty()->GetShowAsContour())
557557
{
558558
lc_mri->SetCursorRASPosition( pos );
559559
MainWindow::GetMainWindow()->SetSlicePosition( pos );

0 commit comments

Comments
 (0)