[GRASS-dev] [grass-code I][373] NVIZ: max res ppm fails if pwd is empty

code I item #373, was opened at 2007-04-19 18:15
Status: Open
Priority: 2
Submitted By: Hamish Bowman (hamish)
Assigned to: Nobody (None)
Summary: NVIZ: max res ppm fails if pwd is empty
Issue type: module bug
Issue status: None
GRASS version: 6.2.1
GRASS component: NVIZ
Operating system: Linux
Operating system version: debian sarge
GRASS CVS checkout date, if applies (YYMMDD): 070402

Initial Comment:
Hi,

In NVIZ if you try and do File->Save Image As->Max res PPM when nviz was started in an new & empty dir you get this tcl error:

no files matched glob pattern "*"
no files matched glob pattern "*"
    while executing
"glob -directory $cur_dir *"
    (procedure "refresh_file_browser" line 10)
    invoked from within
"refresh_file_browser $w"
    (procedure "create_file_browser" line 91)
    invoked from within
"create_file_browser .file_browser 1"
    invoked from within
".top.menu.file.m.img invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tkMenuInvoke" line 47)
    invoked from within
"tkMenuInvoke .top.menu.file.m.img 1
"
    (command bound to event)

then it takes you to the file picker window.

Hamish

----------------------------------------------------------------------

You can respond by visiting:
http://wald.intevation.org/tracker/?func=detail&atid=204&aid=373&group_id=21

grass-codei@wald.intevation.org wrote:

code I item #373, was opened at 2007-04-19 18:15
Status: Open
Priority: 2
Submitted By: Hamish Bowman (hamish)
Assigned to: Nobody (None)
Summary: NVIZ: max res ppm fails if pwd is empty
Issue type: module bug
Issue status: None
GRASS version: 6.2.1
GRASS component: NVIZ
Operating system: Linux
Operating system version: debian sarge
GRASS CVS checkout date, if applies (YYMMDD): 070402

Initial Comment:
Hi,

In NVIZ if you try and do File->Save Image As->Max res PPM when nviz was started in an new & empty dir you get this tcl error:

no files matched glob pattern "*"
no files matched glob pattern "*"
    while executing
"glob -directory $cur_dir *"

Add the -nocomplain switch to the glob command (refresh_file_browser, in
visualization/nviz/scripts/fileBrowser.tcl).

--
Glynn Clements <glynn@gclements.plus.com>

> code I item #373, was opened at 2007-04-19 18:15
> Summary: NVIZ: max res ppm fails if pwd is empty

..

> In NVIZ if you try and do File->Save Image As->Max res PPM when nviz
> was started in an new & empty dir you get this tcl error:
>
> no files matched glob pattern "*"
> no files matched glob pattern "*"
> while executing
> "glob -directory $cur_dir *"

Glynn:

Add the -nocomplain switch to the glob command (refresh_file_browser,
in visualization/nviz/scripts/fileBrowser.tcl).

thanks, fixed in CVS.

Hamish