mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-11 12:53:08 +05:00
fix gui crash in 2d when selecting face numbers
This commit is contained in:
parent
0497dc25fd
commit
58db55c2ff
@ -472,7 +472,7 @@ namespace netgen
|
|||||||
const Point3d & p2 = mesh->Point(v.Elem(2));
|
const Point3d & p2 = mesh->Point(v.Elem(2));
|
||||||
const Point3d & p3 = mesh->Point(v.Elem(3));
|
const Point3d & p3 = mesh->Point(v.Elem(3));
|
||||||
Point3d p;
|
Point3d p;
|
||||||
if (v.Elem(4) == 0)
|
if (v.Size() == 3)
|
||||||
{
|
{
|
||||||
p = Center (p1, p2, p3);
|
p = Center (p1, p2, p3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user