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 hobu)

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:1 by hobu, 18 years ago

fixed in HEAD

comment:2 by hobu, 18 years ago

changed this to check for 1.3.28, where the change happened, instead of merely
1.3.29.

comment:3 by hobu, 18 years ago

also changed this to check for SWIGRUBY, as it seems to affect that as well.

comment:4 by hobu, 18 years ago

closing as fixed.  Haven't heard any reports of ill effects from this.

comment:5 by hobu, 17 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Fixed long ago. Should even work for SWIG 1.3.31 now.

Note: See TracTickets for help on using tickets.