X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69da0d99464a82aae30dcb704c98bc9b4e7b095b..ace1785b153d4873a7c7684047c144facd11a26d:/utils/configtool/src/propeditor.cpp diff --git a/utils/configtool/src/propeditor.cpp b/utils/configtool/src/propeditor.cpp index 94220446de..d45415fe2f 100644 --- a/utils/configtool/src/propeditor.cpp +++ b/utils/configtool/src/propeditor.cpp @@ -9,7 +9,7 @@ // Licence: ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "propeditor.h" #endif @@ -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")) {