fix gui crash in 2d when selecting face numbers

This commit is contained in:
Christopher Lackner 2025-01-03 10:14:58 +01:00
parent 0497dc25fd
commit 58db55c2ff

View File

@ -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);
}