From 1a010f2e572d304254c63675069077d394212b83 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Wed, 2 Feb 2022 14:26:58 +0100 Subject: [PATCH] avoid range exceptions if no element is found on double click --- libsrc/visualization/vssolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/visualization/vssolution.cpp b/libsrc/visualization/vssolution.cpp index 4414b2c7..0fc6df77 100644 --- a/libsrc/visualization/vssolution.cpp +++ b/libsrc/visualization/vssolution.cpp @@ -4878,7 +4878,7 @@ namespace netgen marker = p; - if(selelement==0) + if(selelement<=0) return; double lami[3] = {0.0, 0.0, 0.0};