ext/wxListBook.cpp in rwx-0.0.1.dev vs ext/wxListBook.cpp in rwx-0.0.1.1.dev

- old
+ new

@@ -43,12 +43,15 @@ if(rb_obj_is_kind_of(hash,rb_cHash)) { set_hash_option(hash,"id",id,unwrapID); set_hash_option(hash,"style",style); } - - _self->Create(unwrap<wxWindow*>(parent),id,wxDefaultPosition,wxDefaultSize,style); + if(nil_check(parent)) + _self->Create(unwrap<wxWindow*>(parent),id, + wxDefaultPosition,wxDefaultSize,style + ); + } rb_call_super(argc,argv); return self;