]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/propform.cpp
Elliptic arc fix for getting bounds
[wxWidgets.git] / contrib / src / deprecated / propform.cpp
index 2395e564c55c13670744684defdcbdc0563d70a0..4de99798344fa753c9cf44990aec004ea9c29a25 100644 (file)
@@ -680,7 +680,7 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm
     else if (m_propertyWindow->IsKindOf(CLASSINFO(wxListBox)))
     {
         wxListBox *lbox = (wxListBox *)m_propertyWindow;
     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();
     }
     /*
             property->GetValue() = lbox->GetStringSelection();
     }
     /*
@@ -688,14 +688,14 @@ bool wxStringFormValidator::OnRetrieveValue(wxProperty *property, wxPropertyForm
     {
     wxRadioBox *rbox = (wxRadioBox *)m_propertyWindow;
     int n = 0;
     {
     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;
     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
             property->GetValue() = choice->GetStringSelection();
     }
     else