From: Braden M. <br...@us...> - 2006-12-06 01:52:51
|
Update of /cvsroot/openvrml/openvrml/src/openvrml-gtkplug In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23602/src/openvrml-gtkplug Modified Files: Tag: OpenVRML-0_16-BRANCH 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.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** gtkvrmlbrowser.cpp 2 Dec 2006 07:20:07 -0000 1.2.2.2 --- gtkvrmlbrowser.cpp 6 Dec 2006 01:52:49 -0000 1.2.2.3 *************** *** 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); } } |