diff options
author | David Robillard <d@drobilla.net> | 2009-05-14 03:29:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-14 03:29:55 +0000 |
commit | 8feac4ed0e764c677d4d208377e956c6db94d2dd (patch) | |
tree | a0815f8a2de80995802db6a108f6d8695cc0d77e | |
parent | 393d883eff2959cf4fcee6dc895e150355a3bd2f (diff) | |
download | ingen-8feac4ed0e764c677d4d208377e956c6db94d2dd.tar.gz ingen-8feac4ed0e764c677d4d208377e956c6db94d2dd.tar.bz2 ingen-8feac4ed0e764c677d4d208377e956c6db94d2dd.zip |
Fix crash on wacky plugins of some unknown variety... ticket #367.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2006 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/PatchCanvas.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 66788f49..e6f4e65c 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -240,6 +240,8 @@ PatchCanvas::build_plugin_menu() for (unsigned i=0; i < slv2_plugin_classes_size(classes); ++i) { SLV2PluginClass c = slv2_plugin_classes_get_at(classes, i); SLV2Value p = slv2_plugin_class_get_parent_uri(c); + if (!p) + p = slv2_plugin_class_get_uri(lv2_plugin); children.insert(make_pair(slv2_value_as_string(p), c)); } build_plugin_class_menu(_plugin_menu, lv2_plugin, classes, children); |