Fixed handling of space after = in options set up.

This commit is contained in:
Robert Osfield
2009-05-13 15:05:23 +00:00
parent 41b6c4dde8
commit 2e73fb2131
2 changed files with 19 additions and 1 deletions

View File

@@ -80,6 +80,8 @@ class OSGDB_EXPORT XmlNode : public osg::Referenced
operator bool () const { return _currentPos<_buffer.size(); }
size_type currentPosition() const { return _currentPos; }
int get() { if (_currentPos<_buffer.size()) return _buffer[_currentPos++]; else return -1; }
int operator [] (size_type i) const { if ((_currentPos+i)<_buffer.size()) return _buffer[_currentPos+i]; else return -1; }