Fixed bug in setting/getting value for wxComboBox. Read-only status
is taken into account. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
23fba6860a
commit
780fb83cb0
@ -225,7 +225,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
||||
{
|
||||
pControl->SetStringSelection(* m_pString);
|
||||
}
|
||||
else
|
||||
if ((m_validatorWindow->GetWindowStyle() & wxCB_READONLY) == 0)
|
||||
{
|
||||
pControl->SetValue(* m_pString);
|
||||
}
|
||||
@ -450,6 +450,9 @@ bool wxGenericValidator::TransferFromWindow(void)
|
||||
}
|
||||
else if (m_pString)
|
||||
{
|
||||
if (m_validatorWindow->GetWindowStyle() & wxCB_READONLY)
|
||||
*m_pString = pControl->GetStringSelection();
|
||||
else
|
||||
*m_pString = pControl->GetValue();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user