X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9ac87bc5cbe46227195e32c44e25831f8206e3c..6ee3c06421446908fabe9de45b8e0c7519c28c24:/contrib/src/ogl/lines.cpp?ds=sidebyside diff --git a/contrib/src/ogl/lines.cpp b/contrib/src/ogl/lines.cpp index 045202c68b..ebdb997d07 100644 --- a/contrib/src/ogl/lines.cpp +++ b/contrib/src/ogl/lines.cpp @@ -25,7 +25,9 @@ #include #endif -#include +#if wxUSE_DEPRECATED +#include +#endif #ifdef new #undef new @@ -1541,16 +1543,16 @@ void wxLineShape::ReadAttributes(wxExpr *clause) wxString arrowName; long arrowId = -1; - wxExpr *type_expr = node->Item(0); - wxExpr *end_expr = node->Item(1); - wxExpr *dist_expr = node->Item(2); - wxExpr *size_expr = node->Item(3); - wxExpr *name_expr = node->Item(4); - wxExpr *id_expr = node->Item(5); + wxExpr *type_expr = node->Nth(0); + wxExpr *end_expr = node->Nth(1); + wxExpr *dist_expr = node->Nth(2); + wxExpr *size_expr = node->Nth(3); + wxExpr *name_expr = node->Nth(4); + wxExpr *id_expr = node->Nth(5); // New members of wxArrowHead - wxExpr *yOffsetExpr = node->Item(6); - wxExpr *spacingExpr = node->Item(7); + wxExpr *yOffsetExpr = node->Nth(6); + wxExpr *spacingExpr = node->Nth(7); if (type_expr) arrowType = (int)type_expr->IntegerValue();