Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
b69fdf5e
Commit
b69fdf5e
authored
Feb 17, 2003
by
Ken Martin
Browse files
modified CanReadFile to match ImageReader2 return values
parent
032fe6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
IO/vtkXMLReader.cxx
View file @
b69fdf5e
...
...
@@ -31,7 +31,7 @@
#include
<sys/stat.h>
vtkCxxRevisionMacro
(
vtkXMLReader
,
"1.
6
"
);
vtkCxxRevisionMacro
(
vtkXMLReader
,
"1.
7
"
);
//----------------------------------------------------------------------------
vtkXMLReader
::
vtkXMLReader
()
...
...
@@ -382,7 +382,10 @@ int vtkXMLReader::CanReadFile(const char* name)
// First make sure the file exists. This prevents an empty file
// from being created on older compilers.
struct
stat
fs
;
if
(
stat
(
name
,
&
fs
)
!=
0
)
{
return
0
;
}
if
(
stat
(
name
,
&
fs
)
!=
0
)
{
return
0
;
}
// Test if the file with the given name is a VTKFile with the given
// type.
...
...
@@ -399,12 +402,12 @@ int vtkXMLReader::CanReadFile(const char* name)
{
if
(
this
->
CanReadFileVersionString
(
version
))
{
result
=
1
;
result
=
3
;
}
}
else
{
result
=
1
;
result
=
3
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment