Commit acb373ab authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot
Browse files

Merge topic 'get-proxyname-by-index-fix'


 Fix proxy name lookup by index

Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <>
Merge-request: !3421
parents e755ef91 cb32dba0
......@@ -672,11 +672,14 @@ const char* vtkSMSessionProxyManager::GetProxyName(const char* groupname, unsign
vtkSMProxyManagerProxyMapType::iterator it2 = it->second.begin();
for (; it2 != it->second.end(); it2++)
if (counter == idx)
if (idx < counter + it2->second.size())
// idx is between counter and the size of the next vector of
// proxies, so return the current proxy map key
return it2->first.c_str();
counter += it2->second.size();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment