mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 02:12:12 -05:00
#3848 Fix crash with text picking by guarding pointer to scene.
This commit is contained in:
1 parent
f3a2f0c5b2
commit
cd75be6671
1 file changed
+2
@@ -1150,6 +1150,8 @@ void RiuViewerCommands::handleTextPicking(int winPosX, int winPosY, cvf::HitItem
|
||||
int translatedMousePosY = m_viewer->height() - winPosY;
|
||||
|
||||
Scene* scene = m_viewer->currentScene();
|
||||
if (!scene) return;
|
||||
|
||||
Collection<Part> partCollection;
|
||||
scene->allParts(&partCollection);
|
||||
|
||||
|
||||
Reference in new issue
Block a user