Commit 72531b5c authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot

Merge topic 'fileserieswriter_current_dir'

6e919647 Fix bug with writing to current directory for FileSeriesWriter
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Cory Quammen's avatarCory Quammen (Kitware) <cory.quammen@kitware.com>
Merge-request: !3202
parents 13c02378 6e919647
Pipeline #134866 pending with stage
......@@ -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