From: Braden M. <br...@us...> - 2006-12-06 01:53:00
|
Update of /cvsroot/openvrml/openvrml/src/openvrml-gtkplug In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23635/src/openvrml-gtkplug Modified Files: gtkvrmlbrowser.cpp Log Message: Set ios_base::badbit (instead of failbit) when stream construction does not produce a readable stream. Index: gtkvrmlbrowser.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/openvrml-gtkplug/gtkvrmlbrowser.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gtkvrmlbrowser.cpp 2 Dec 2006 07:20:21 -0000 1.4 --- gtkvrmlbrowser.cpp 6 Dec 2006 01:52:58 -0000 1.5 *************** *** 516,520 **** const int get_url_result = this->streambuf_->get_url_result(); if (get_url_result != 0) { ! this->setstate(std::ios_base::failbit); } } --- 516,520 ---- const int get_url_result = this->streambuf_->get_url_result(); if (get_url_result != 0) { ! this->setstate(std::ios_base::badbit); } } |