X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dabbc6a5a1795d169f26ce95927f3e4f1a5e7b7e..1c2ed09a15a5eccaa1f78d3c57a597c13ba9f8f1:/contrib/src/deprecated/propform.cpp diff --git a/contrib/src/deprecated/propform.cpp b/contrib/src/deprecated/propform.cpp index 2395e564c5..4de9979834 100644 --- a/contrib/src/deprecated/propform.cpp +++ b/contrib/src/deprecated/propform.cpp @@ -680,7 +680,7 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm else if (m_propertyWindow->IsKindOf(CLASSINFO(wxListBox))) { wxListBox *lbox = (wxListBox *)m_propertyWindow; - if (lbox->GetSelection() > -1) + if (lbox->GetSelection() != wxNOT_FOUND) property->GetValue() = lbox->GetStringSelection(); } /* @@ -688,14 +688,14 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm { wxRadioBox *rbox = (wxRadioBox *)m_propertyWindow; int n = 0; - if ((n = rbox->GetSelection()) > -1) + if ((n = rbox->GetSelection()) != wxNOT_FOUND) property->GetValue() = rbox->GetString(n); } */ else if (m_propertyWindow->IsKindOf(CLASSINFO(wxChoice))) { wxChoice *choice = (wxChoice *)m_propertyWindow; - if (choice->GetSelection() > -1) + if (choice->GetSelection() != wxNOT_FOUND) property->GetValue() = choice->GetStringSelection(); } else