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:
@@ -144,9 +144,13 @@ wxString wxNSComboBoxControl::GetStringAtIndex(int pos) const
|
|||||||
|
|
||||||
int wxNSComboBoxControl::FindString(const wxString& text) const
|
int wxNSComboBoxControl::FindString(const wxString& text) const
|
||||||
{
|
{
|
||||||
int result = [m_comboBox indexOfItemWithObjectValue:wxCFStringRef( text , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
|
NSInteger nsresult = [m_comboBox indexOfItemWithObjectValue:wxCFStringRef( text , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
|
||||||
if (result == NSNotFound)
|
|
||||||
|
int result;
|
||||||
|
if (nsresult == NSNotFound)
|
||||||
result = wxNOT_FOUND;
|
result = wxNOT_FOUND;
|
||||||
|
else
|
||||||
|
result = (int) nsresult;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user