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

- old
+ new

@@ -261,10 +261,12 @@ if(rb_obj_is_kind_of(hash,rb_cHash)) set_hash_option(hash,"id",id,unwrapID); #if wxUSE_XRC if(!loadxrc(_self,name,unwrap<wxWindow*>(parent))) #endif - _self->Create(unwrap<wxWindow*>(parent),id); + if(nil_check(parent)) { + _self->Create(unwrap<wxWindow*>(parent),id); + } } if(rb_obj_is_kind_of(hash,rb_cHash)) {