]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/propform.cpp
removed obsolete comment
[wxWidgets.git] / src / generic / propform.cpp
index 4f1b06f67fa938b3d9c494b5af28ffa5e604472e..5086d818c3d71997dcca3d58c31db2ef651a8ea4 100644 (file)
@@ -713,7 +713,7 @@ bool wxStringFormValidator::OnDisplayValue(wxProperty *property, wxPropertyFormV
     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->Number() == 0 && m_strings)
+        if (lbox->GetCount() == 0 && m_strings)
         {
             // Try to initialize the listbox from 'strings'
             wxNode *node = m_strings->First();
         {
             // Try to initialize the listbox from 'strings'
             wxNode *node = m_strings->First();
@@ -737,7 +737,7 @@ bool wxStringFormValidator::OnDisplayValue(wxProperty *property, wxPropertyFormV
     {
         wxChoice *choice = (wxChoice *)m_propertyWindow;
 #ifndef __XVIEW__
     {
         wxChoice *choice = (wxChoice *)m_propertyWindow;
 #ifndef __XVIEW__
-        if (choice->Number() == 0 && m_strings)
+        if (choice->GetCount() == 0 && m_strings)
         {
             // Try to initialize the choice item from 'strings'
             // XView doesn't allow this kind of thing.
         {
             // Try to initialize the choice item from 'strings'
             // XView doesn't allow this kind of thing.