commit 16d9dce80cc793472e5e11ce1894ad6e2b5caebb parent f2045f6ee4d06466f04067b2bccae4357d45fc8d Author: fundamental <[email protected]> Date: Tue, 2 Sep 2014 14:35:30 -0400 UI: Fix Segfault with NTK Diffstat:
M | src/UI/Connection.cpp | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/UI/Connection.cpp b/src/UI/Connection.cpp @@ -34,8 +34,10 @@ set_module_parameters ( Fl_Widget *o ) o->color( FL_BLACK ); o->image( module_backdrop ); o->labeltype( FL_SHADOW_LABEL ); - o->parent()->labeltype(FL_NO_LABEL); - o->parent()->box(FL_NO_BOX); + if(o->parent()) { + o->parent()->labeltype(FL_NO_LABEL); + o->parent()->box(FL_NO_BOX); + } #else o->box( FL_PLASTIC_UP_BOX ); o->color( FL_CYAN );