Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3160 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Dec 12, 2004, 12:03:42 AM (20 years ago)
Author:
bensch
Message:

orxonox/trun/gui: forgot one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_gtk.cc

    r3159 r3160  
    668668void Button::setTitle (char *title)
    669669{
    670   label = title;
     670  if (label)
     671    delete label;
     672  label = new char[strlen(title)+1];
     673  strcpy(label, title);
    671674  gtk_button_set_label (GTK_BUTTON(widget), title);
    672675}
Note: See TracChangeset for help on using the changeset viewer.