wxGUI vector layer field broken
|Reported by:||mmetz||Owned by:|
|Keywords:||wxGUI, vector layer selection||Cc:|
That integer scroll field in wxGUI dialogs is doubly broken in all branches: first, it is locked to 1 and can not be changed, second, it does not propagate that 1 to the module, the default of the module is used instead which might be -1 (all layers).
The only way to use the wxGUI to accept another layer is to use grass7 and there use that text drop-down field. Whatever is entered there is actually used as option layer=X when calling the module.
I suggest to use a text drop-down field in all branches for the layer option and leave the checks for legal arguments to modules (they should do that anyway). Users can enter whatever they want, as for other options.