summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 22:53:59 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 22:53:59 +0000
commitdcd47e751e95cf52cbe4da3fc8ef34adf8413cb5 (patch)
tree54d057186a5ff0ec82f2b2f45309ca35eb31cff8
parent6410561f2f2d1816c005e24eff1a8e64d0449e2a (diff)
downloadchromium_src-dcd47e751e95cf52cbe4da3fc8ef34adf8413cb5.zip
chromium_src-dcd47e751e95cf52cbe4da3fc8ef34adf8413cb5.tar.gz
chromium_src-dcd47e751e95cf52cbe4da3fc8ef34adf8413cb5.tar.bz2
Fixing lame bug in radiobutton.
The UsesNativeRatioButtonGropu condition was inverse. RadioButton should use its own grouping logic when native grouping is not used. (on windows) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26411 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--views/controls/button/radio_button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/button/radio_button.cc b/views/controls/button/radio_button.cc
index 4509d74..20c55fa 100644
--- a/views/controls/button/radio_button.cc
+++ b/views/controls/button/radio_button.cc
@@ -29,7 +29,7 @@ RadioButton::~RadioButton() {
void RadioButton::SetChecked(bool checked) {
if (checked == RadioButton::checked())
return;
- if (native_wrapper_->UsesNativeRadioButtonGroup() && checked) {
+ if (!native_wrapper_->UsesNativeRadioButtonGroup() && checked) {
// We can't just get the root view here because sometimes the radio
// button isn't attached to a root view (e.g., if it's part of a tab page
// that is currently not active).