We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdb154 commit 49c68a7Copy full SHA for 49c68a7
rviz_common/include/rviz_common/factory/pluginlib_factory.hpp
@@ -177,7 +177,9 @@ class PluginlibFactory : public ClassIdRecordingFactory<Type>
177
return loadPixmap(default_icon_path);
178
}
179
180
- auto base_path = "package://" + info.package + "/icons/classes/" + info.name;
+ auto encoded_name = info.name;
181
+ encoded_name.replace(" ", "%20");
182
+ auto base_path = "package://" + info.package + "/icons/classes/" + encoded_name;
183
QIcon icon = loadPixmap(base_path + ".svg");
184
if (icon.isNull()) {
185
icon = loadPixmap(base_path + ".png");
0 commit comments