- wxExpr *typeExpr = constraintExpr->Item(0);
- wxExpr *nameExpr = constraintExpr->Item(1);
- wxExpr *idExpr = constraintExpr->Item(2);
- wxExpr *xExpr = constraintExpr->Item(3);
- wxExpr *yExpr = constraintExpr->Item(4);
- wxExpr *constrainingExpr = constraintExpr->Item(5);
- wxExpr *constrainedExpr = constraintExpr->Item(6);
-
- cType = (int)typeExpr->IntegerValue();
- cXSpacing = xExpr->RealValue();
- cYSpacing = yExpr->RealValue();
+ wxExpr *typeExpr = constraintExpr->Nth(0);
+ wxExpr *nameExpr = constraintExpr->Nth(1);
+ wxExpr *idExpr = constraintExpr->Nth(2);
+ wxExpr *xExpr = constraintExpr->Nth(3);
+ wxExpr *yExpr = constraintExpr->Nth(4);
+ wxExpr *constrainingExpr = constraintExpr->Nth(5);
+ wxExpr *constrainedExpr = constraintExpr->Nth(6);
+
+ int cType = (int)typeExpr->IntegerValue();
+ double cXSpacing = xExpr->RealValue();
+ double cYSpacing = yExpr->RealValue();