Commit 6e919647 authored by Andrew Bauer's avatar Andrew Bauer

Fix bug with writing to current directory for FileSeriesWriter

If writing multiple time steps and trying to write to the current
directory the vtkFileSeriesWriter will try to write to / instead.
parent bb6d8f93
......@@ -208,7 +208,11 @@ bool vtkFileSeriesWriter::WriteATimestep(vtkDataObject* input, vtkInformation* i
// Print this->CurrentTimeIndex to a string using this->FileNameSuffix as format
char suffix[100];
snprintf(suffix, 100, this->FileNameSuffix, this->CurrentTimeIndex);
fname << path << "/" << fnamenoext << suffix << ext;
if (!path.empty() && path != "")
{
fname << path << "/";
}
fname << fnamenoext << suffix << ext;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment