Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5397 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc


Ignore:
Timestamp:
Oct 18, 2005, 5:33:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Elemet2D-drawing better
prevent segfault in setParent with NULL as new Parent in Element2D and PNode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_widget.cc

    r5395 r5397  
    2828{
    2929  this->init();
    30   this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE);
    3130}
    3231
     
    5049  this->focusable = true;
    5150  this->clickable = true;
     51  this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE);
     52  this->setParent2D((Element2D*)NULL);
    5253
    5354  this->backMat = NULL;
Note: See TracChangeset for help on using the changeset viewer.