Part: fix TopoShape::getElementTypes()

This also fixes Std_BoxElementSelection in Gui/CommandView.cpp, which
relies on this API through Data::ComplexGeoData::getElementTypes().
This commit is contained in:
Zheng, Lei
2019-09-18 17:12:53 +08:00
committed by wmayer
parent eb4dbd56a7
commit b4b61ce6c2

View File

@@ -310,11 +310,7 @@ TopoShape::TopoShape(const TopoShape& shape)
std::vector<const char*> TopoShape::getElementTypes(void) const
{
std::vector<const char*> temp(3);
temp.push_back("Vertex");
temp.push_back("Edge");
temp.push_back("Face");
static const std::vector<const char*> temp = {"Face","Edge","Vertex"};
return temp;
}