Changeset 3290 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
- Timestamp:
- Dec 26, 2004, 3:58:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_exec.cc
r3288 r3290 154 154 } 155 155 // if (widget->isOption == 0) 156 // printf ("%s\n",widget-> label);156 // printf ("%s\n",widget->title); 157 157 if (widget->isOption >= 1) 158 158 if (static_cast<Option*>(widget)->isSaveable()) … … 160 160 char Buffer[256]; 161 161 char* space2under; 162 strcpy (Buffer, static_cast<Option*>(widget)-> label);162 strcpy (Buffer, static_cast<Option*>(widget)->title); 163 163 if (strchr (Buffer, '_')) 164 164 cout << "Warning Optionname" << Buffer << " is not Valid for Saving, because it includes an underscore" << endl; … … 231 231 if (widget->isOption >= 1 && widget->isOption <= 3) 232 232 { 233 if (!strcmp (static_cast<Option*>(widget)-> label, variableName))233 if (!strcmp (static_cast<Option*>(widget)->title, variableName)) 234 234 static_cast<Option*>(widget)->value = atoi(variableValue); 235 235 } 236 236 else if (widget->isOption == 5) 237 237 { 238 if (!strcmp (static_cast<Option*>(widget)-> label, variableName))238 if (!strcmp (static_cast<Option*>(widget)->title, variableName)) 239 239 static_cast<OptionLabel*>(widget)->setValue(variableValue); 240 240 }
Note: See TracChangeset
for help on using the changeset viewer.