X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9ac87bc5cbe46227195e32c44e25831f8206e3c..084db46c8b4f3f8d5e6a5f55e09e04f5a680c8a5:/contrib/src/ogl/ogldiag.cpp diff --git a/contrib/src/ogl/ogldiag.cpp b/contrib/src/ogl/ogldiag.cpp index 932bbcdf75..d9deae4921 100644 --- a/contrib/src/ogl/ogldiag.cpp +++ b/contrib/src/ogl/ogldiag.cpp @@ -24,7 +24,9 @@ #include #endif -#include +#if wxUSE_DEPRECATED +#include +#endif #ifdef new #undef new @@ -453,7 +455,7 @@ void wxDiagram::ReadContainerGeometry(wxExprDatabase& database) if (divisionExpr) { int i = 0; - wxExpr *idExpr = divisionExpr->Item(i); + wxExpr *idExpr = divisionExpr->Nth(i); while (idExpr) { long divisionId = idExpr->IntegerValue(); @@ -510,7 +512,7 @@ void wxDiagram::ReadContainerGeometry(wxExprDatabase& database) } } i ++; - idExpr = divisionExpr->Item(i); + idExpr = divisionExpr->Nth(i); } } }