Opened 18 years ago

Closed 18 years ago

#1838 closed defect (fixed)

msInsertLayer does not set the layer index properly

Reported by: szekerest Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

insertLayer does not set the layer index properly if the layer is inserted
between the existing layers.

mapobject.c line 520
/* copy new layer to specified index */
        freeLayer(&(map->layers[nIndex]));
        initLayer(&(map->layers[nIndex]), map);
        msCopyLayer(&(map->layers[nIndex]), layer);
        map->layers[map->numlayers].index = nIndex;

the last line should be replaced with:

map->layers[nIndex].index = nIndex;

Tamas

Change History (1)

comment:1 by sdlime, 18 years ago

Resolution: fixed
Status: newclosed
Fixed in CVS HEAD...

Steve
Note: See TracTickets for help on using tickets.