Skip to content

Commit

Permalink
FileDescriptor::resetStreamToStart needs to reset ios flags too.
Browse files Browse the repository at this point in the history
Refs #7263
  • Loading branch information
martyngigg committed Jul 3, 2013
1 parent 4c4155e commit c9f8745
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Code/Mantid/Framework/Kernel/src/FileDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ namespace Mantid
*/
void FileDescriptor::resetStreamToStart()
{
m_file.close(); // reset all flags
// If the stream was closed, reopen it
if(!m_file.is_open())
{
Expand Down

0 comments on commit c9f8745

Please sign in to comment.