Skip to content
Snippets Groups Projects
Commit 94c2b12e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't populate physical names by just doing a query

parent abfc71e4
No related branches found
No related tags found
No related merge requests found
......@@ -315,7 +315,9 @@ int GModel::setPhysicalName(std::string name, int number)
std::string GModel::getPhysicalName(int number)
{
return physicalNames[number];
if(physicalNames.count(number))
return physicalNames[number];
return "";
}
SBoundingBox3d GModel::bounds()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment