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:
parent
0dc199a5c3
commit
a577a699da
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user