1 From 1d6745888bcc34b260410a3cdbba49ecf0084ba2 Mon Sep 17 00:00:00 2001
2 From: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
3 Date: Tue, 17 Apr 2012 14:54:05 -0400
4 Subject: [PATCH] BUG #13101. STL ascii reader was report failures prematurely.
6 STL ascii reader was reporting error when eof was reached at an expected
7 location. This was causing the reader to fail for the STL file attached with the
10 Change-Id: I734d2c8d8c85854df3d2a63bae6ba23bccf7a9c2
12 IO/vtkSTLReader.cxx | 13 ++++++++-----
13 1 files changed, 8 insertions(+), 5 deletions(-)
15 diff --git a/IO/vtkSTLReader.cxx b/IO/vtkSTLReader.cxx
16 index 189ea1b..34ee3e0 100644
17 --- a/VTK/IO/vtkSTLReader.cxx
18 +++ b/VTK/IO/vtkSTLReader.cxx
19 @@ -442,12 +442,15 @@ int vtkSTLReader::ReadASCIISTL(FILE *fp, vtkPoints *newPts,
21 if (!fgets(line, 255, fp))
23 - vtkErrorMacro ("STLReader error reading file: " << this->FileName
24 - << " Premature EOF while reading end solid.");
30 + vtkErrorMacro ("STLReader error reading file: " << this->FileName
31 + << " Premature EOF while reading end solid.");