Fix the broken radio groups

Now can I go to sleep, Papa?
...
But I did my chores and fixed the bugs.
...
YAY! *runs off to bed*
This commit is contained in:
Inusaito Sayori
2014-08-22 07:14:19 -04:00
parent 9379bcedf9
commit e3dd05ef21

View File

@@ -447,12 +447,12 @@ LLView* LLRadioGroup::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory
createRect(child, item_rect, radio_group, rect);
std::string item_label = child->getTextContents();
node->getAttributeString("label", item_label);
child->getAttributeString("label", item_label);
std::string item_name("radio");
node->getAttributeString("name", item_name);
child->getAttributeString("name", item_name);
std::string payload(item_name); // Support old-style name as payload
node->getAttributeString("value", payload);
node->getAttributeString("initial_value", payload); // Synonym
child->getAttributeString("value", payload);
child->getAttributeString("initial_value", payload); // Synonym
LLRadioCtrl* radio = radio_group->addRadioButton(item_name, item_label, item_rect, font, payload);
radio->initFromXML(child, radio_group);