| Description | When you hit OK in a vtkKWFileBrowserDialog, it first gets the filename (without path) and checks for the existence of a file with that name IN THE CURRENT DIRECTORY. If such a file is found, FileName is set to the filename alone (without any path).
(see the code following the call to vtksys::SystemTools::FileExist on line 928 of vtkKWFileBrowserDialog.cxx in CVS as of 24 Apr 2008).
A comment in the code indicates that this behaviour is designed to let the user enter a full pathname in the text entry box. However, it should check to see if the content of that box really is a full path (containing '/' or '\' or other path separators).
I encountered this bug when using Slicer3 to load old VoxelView datasets. Each dataset is in its own directory and contains a list of slices just named "1", "2" and so on. If I am in one VoxelView directory I can not not navigate to another directory and load it instead, since the above behaviour means that "1" always refers to "1" in the current directory.
|