Opened 18 years ago
Closed 17 years ago
#1815 closed defect (fixed)
getLayersDrawingOrder is borked for SWIG 1.3.28 and greater
Reported by: | hobu | Owned by: | hobu |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-Python | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description (last modified by )
SWIG changed how it does getitem/setitem naming (maybe for the worse). I sent a message to the swig-devel list a couple of months ago, but didn't hear anything back. I would prefer to not be using swig internals and actually have an intarray-like entity, but here's a stopgap that will work for now. #if defined(SWIGPYTHON) && SWIG_VERSION >= 0x010329 /* 1.3.29 */ intarray___setitem__(order, i, self->layerorder[i]); #else intarray_setitem(order, i, self->layerorder[i]); #endif
Change History (5)
comment:2 by , 18 years ago
changed this to check for 1.3.28, where the change happened, instead of merely 1.3.29.
comment:3 by , 18 years ago
also changed this to check for SWIGRUBY, as it seems to affect that as well.
comment:5 by , 17 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed long ago. Should even work for SWIG 1.3.31 now.
Note:
See TracTickets
for help on using tickets.