#278: wxGUI: don't allow for negative column number
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: martinl
Type: defect | Status: assigned
Priority: minor | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: parser | Platform: All
Cpu: All |
----------------------+-----------------------------------------------------
Comment(by wenzeslaus):
In GRASS, values `> 0` should be now specified in C as:
{{{
...
opt->options = "1-";
}}}
and in Python as:
{{{
...
#% options: 1-
}}}
So, v.in.ascii needs this fix, so that standard Parser mechanism is used
instead of custom error handling.
GUI now allows to input negative numbers but label contains "valid range
1-" and Run gives an standard error message generated by module (parser):
{{{
ERROR: Value <-4> out of range for parameter <x>
Legal range: 1-
}}}
GUI would not allow to input values out of range if both limits would be
specified. GUI needs to be improved, so it can handle also range with min
or max only.
Modules using custom range handling, such as `v.in.ascii`, should be
chanaged to use parser.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/278#comment:5>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev