Commit cdc60059 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug with increment operator for drawmodes (shift in underlying bitset)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9432 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 90dc2f48
......@@ -134,7 +134,7 @@ DrawMode& DrawMode::operator++() {
std::cerr << "Operator ++ for drawMode which is not atomic!!" << std::endl;
}
modeFlags_ << 1;
modeFlags_ <<= 1;
return (*this);
}
......@@ -320,10 +320,7 @@ bool addDrawMode( const std::string & _name, DrawMode & _newId )
// check if mode exists already
VecDrawModes::iterator modeIter, modeEnd( currentDrawModes_.end() );
for( modeIter = currentDrawModes_.begin();
modeIter != modeEnd;
++modeIter )
{
for( modeIter = currentDrawModes_.begin(); modeIter != modeEnd; ++modeIter ) {
if( _name == modeIter->name_ )
return modeIter->id_;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment