fixing 64 bit ranger error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2010-11-22 16:38:44 +00:00
parent ff1e36afc0
commit 79323592eb

View File

@ -144,9 +144,13 @@ wxString wxNSComboBoxControl::GetStringAtIndex(int pos) const
int wxNSComboBoxControl::FindString(const wxString& text) const
{
int result = [m_comboBox indexOfItemWithObjectValue:wxCFStringRef( text , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
if (result == NSNotFound)
NSInteger nsresult = [m_comboBox indexOfItemWithObjectValue:wxCFStringRef( text , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
int result;
if (nsresult == NSNotFound)
result = wxNOT_FOUND;
else
result = (int) nsresult;
return result;
}