summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-14 03:29:55 +0000
committerDavid Robillard <d@drobilla.net>2009-05-14 03:29:55 +0000
commit8feac4ed0e764c677d4d208377e956c6db94d2dd (patch)
treea0815f8a2de80995802db6a108f6d8695cc0d77e /src/gui
parent393d883eff2959cf4fcee6dc895e150355a3bd2f (diff)
downloadingen-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
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchCanvas.cpp2
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);