]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/propeditor.cpp
Cleaned up some comments, reorganized some code
[wxWidgets.git] / utils / configtool / src / propeditor.cpp
index 94220446def3d11ebeffda69692eaf0da5494b1e..1bf8c2023e19f242c4297fb3993447de72e3ccc0 100644 (file)
@@ -313,12 +313,16 @@ bool ctPropertyEditor::DisplayProperty(int row, ctProperty* prop, bool valueOnly
     // Set the value type
     if (prop->GetEditorType() == _T("choice"))
     {
+#if 0
         wxString* strArr = prop->GetChoices().GetStringArray();
 
         m_attributeEditorGrid->SetCellEditor(row, 1,
                 new wxGridCellChoiceEditor(prop->GetChoices().GetCount(), strArr));
 
         delete[] strArr;
+#endif
+        m_attributeEditorGrid->SetCellEditor(row, 1,
+                new wxGridCellChoiceEditor(prop->GetChoices()));
     }
     else if (prop->GetEditorType() == _T("integer") || prop->GetVariant().GetType() == _T("long"))
     {