]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetInfo.cpp
Allow using icon names in InsetInfo
[features.git] / src / insets / InsetInfo.cpp
index 98fe7d7c9b21caabb0ddfde97a848375aca91a4d..acf073aa107103064ee5fd4e67d8a4e1fb1e1359 100644 (file)
@@ -410,6 +410,12 @@ void InsetInfo::updateInfo()
                // installed one is preferred anyway, and all icons that are
                // embedded in the resources are installed as well.
                FileName file(to_utf8(icon_name));
+               if (file.onlyFileNameWithoutExt() == "unknown") {
+                       string dir = "images";
+                       FileName file2(imageLibFileSearch(dir, name_, "svgz,png"));
+                       if (!file2.empty())
+                               file = file2;
+               }
                if (!file.exists())
                        break;
                int percent_scale = 100;