mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 21:09:27 -06:00
Fixes crash when calling openspace.getProperty() with only a tag
This commit is contained in:
@@ -282,7 +282,8 @@ bool doesUriContainGroupTag(const std::string& command, std::string& groupName)
|
||||
}
|
||||
|
||||
std::string removeGroupNameFromUri(const std::string& uri) {
|
||||
return uri.substr(uri.find_first_of("."));
|
||||
size_t pos = uri.find_first_of(".");
|
||||
return pos == std::string::npos ? uri : uri.substr(pos);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user