is taken into account.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30223
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
pControl->SetStringSelection(* m_pString);
}
- else
+ if ((m_validatorWindow->GetWindowStyle() & wxCB_READONLY) == 0)
{
pControl->SetValue(* m_pString);
}
}
else if (m_pString)
{
- *m_pString = pControl->GetValue();
+ if (m_validatorWindow->GetWindowStyle() & wxCB_READONLY)
+ *m_pString = pControl->GetStringSelection();
+ else
+ *m_pString = pControl->GetValue();
return true;
}
} else