[GRASS5] 5.7: tcltkgrass: can't read "optn": no such variable

Hello,

When I try to use the open file dialog in 5.7 tcltkgrass (for example in
v.in.ogr) I get a 'can't read "optn": no such variable' error, once I
chose a file and then click on "open":

here's the complete message:

can't read "optn": no such variable
    while executing
"if {$optmulti($optn) && $optval($optn) != ""} {
        append optval($optn) "," $filename
      } {
        set optval($optn) $filename
      }"
    invoked from within
".pw.f0.frame.optwin.fra.frame.val1.sel invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 22)
    invoked from within
"tk::ButtonUp .pw.f0.frame.optwin.fra.frame.val1.sel"
    (command bound to event)

Is this a tcltkgrass bug, or something on my system (Debian with tcltk 8.3) ?

Moritz

Moritz Lennert wrote:

When I try to use the open file dialog in 5.7 tcltkgrass (for example in
v.in.ogr) I get a 'can't read "optn": no such variable' error, once I
chose a file and then click on "open":

It's a bug in the lib/gis/gui.tcl file used by G_gui().

I'll commit a fix soon.

--
Glynn Clements <glynn.clements@virgin.net>