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:
@@ -246,7 +246,7 @@ void BRadioButton::SetValue(int32 value)
|
|||||||
if (BControl::Value() == value)
|
if (BControl::Value() == value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!IsTracking())
|
if (!IsTracking() && value == B_CONTROL_ON)
|
||||||
{
|
{
|
||||||
BView *sibling;
|
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)
|
void BRadioButton::GetPreferredSize(float *width, float *height)
|
||||||
|
|||||||
Reference in New Issue
Block a user