From e3dd05ef21cf3cf7722b82cad4a176774e99a409 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 22 Aug 2014 07:14:19 -0400 Subject: [PATCH] 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* --- indra/llui/llradiogroup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/indra/llui/llradiogroup.cpp b/indra/llui/llradiogroup.cpp index cdac9b0a4..544966479 100644 --- a/indra/llui/llradiogroup.cpp +++ b/indra/llui/llradiogroup.cpp @@ -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);