This commit is contained in:
matlabbe
2018-10-04 11:06:47 -04:00
parent 6b5990aa04
commit a1079761e7

View File

@@ -2127,7 +2127,7 @@ std::string CloudViewer::getIdByActor(vtkProp * actor) const
if(iter->second.GetPointer() == actor)
{
std::string id = iter->first;
while(id.back() == '*')
while(id.size() && id.at(id.size()-1) == '*')
{
id.erase(id.size()-1);
}