C#-Mapscript: Bug in mapObj.insertLayer()

Tamas Szekeres szekerest at GMAIL.COM
Tue Jul 18 19:03:48 EDT 2006


Christian,

You are right, a bug report should be posted accordingly.
Good catch!

How this problem results in error for you?

Tamas



2006/7/18, Christian Wilmes <C.Wilmes at gmx.de>:
> Hi All,
>
> I think there is a bug in the method for mapObj.insertLayer(layerObj layer, int index). It only works for index = -1.
>
> I think reason for that might be in mapobject.c in the function msInsertLayerm, line 525:
>
> map->layers[map->numlayers].index = nIndex;
>
>
>
> Is it possible, that something like
>
> map->layers[nIndex].index = nIndex;
>
> is correct?
>
>
> Best Regards
> Christian
> --
>
>
> Echte DSL-Flatrate dauerhaft für 0,- Euro*!
> "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
>



More information about the mapserver-users mailing list