From 58db55c2ff458c5fc82da8ae24243f423f2459d1 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 3 Jan 2025 10:14:58 +0100 Subject: [PATCH] fix gui crash in 2d when selecting face numbers --- libsrc/visualization/vsmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index f8f6c5d9..f3d8f732 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -472,7 +472,7 @@ namespace netgen const Point3d & p2 = mesh->Point(v.Elem(2)); const Point3d & p3 = mesh->Point(v.Elem(3)); Point3d p; - if (v.Elem(4) == 0) + if (v.Size() == 3) { p = Center (p1, p2, p3); }