diff options
author | David Robillard <d@drobilla.net> | 2008-08-14 00:29:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-14 00:29:22 +0000 |
commit | 819eb884826cd9696f34309f8253be2a8819b942 (patch) | |
tree | 243ba74f37361e285469dcfc8e0aa82ad4ce4f6c /src/libs/gui/WindowFactory.cpp | |
parent | a24f1ad2994ff5983ee1925f6a5f2fed58391bcd (diff) | |
download | ingen-819eb884826cd9696f34309f8253be2a8819b942.tar.gz ingen-819eb884826cd9696f34309f8253be2a8819b942.tar.bz2 ingen-819eb884826cd9696f34309f8253be2a8819b942.zip |
Fix crash when showing control window for root patch.
git-svn-id: http://svn.drobilla.net/lad/ingen@1362 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/WindowFactory.cpp')
-rw-r--r-- | src/libs/gui/WindowFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/gui/WindowFactory.cpp b/src/libs/gui/WindowFactory.cpp index 92b73962..a20b8fc9 100644 --- a/src/libs/gui/WindowFactory.cpp +++ b/src/libs/gui/WindowFactory.cpp @@ -224,7 +224,7 @@ NodeControlWindow* WindowFactory::new_control_window(SharedPtr<NodeModel> node) { uint32_t poly = 1; - if (node->polyphonic()) + if (node->polyphonic() && node->parent()) poly = ((PatchModel*)node->parent().get())->poly(); NodeControlWindow* win = new NodeControlWindow(node, poly); |