Fixed a bug in SetValue()

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1559 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marc Flerackers 2002-10-17 13:42:38 +00:00
parent 0dc199a5c3
commit a577a699da
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ void BRadioButton::SetValue(int32 value)
if (BControl::Value() == value)
return;
if (!IsTracking())
if (!IsTracking() && value == B_CONTROL_ON)
{
BView *sibling;
@ -269,7 +269,7 @@ void BRadioButton::SetValue(int32 value)
}
}
BControl::SetValue(B_CONTROL_ON);
BControl::SetValue(value);
}
//------------------------------------------------------------------------------
void BRadioButton::GetPreferredSize(float *width, float *height)