Permalink
Browse files

Use std::multiset::iterator instead of std::set::iterator with std::m…

…ultiset.

Apparently, the iterators were compatible, in some library implementations.
  • Loading branch information...
1 parent c9fa97c commit 5b9a496b1a5dd3f1d63e0f035561bd750266d2da @Cyp Cyp committed Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ivis_opengl/bitimage.cpp
@@ -66,7 +66,7 @@ inline void ImageMerge::arrange()
{
--r;
- std::set<ImageMergeRectangle>::iterator f = freeSpace.lower_bound(*r); // Find smallest free rectangle which is large enough.
+ std::multiset<ImageMergeRectangle>::iterator f = freeSpace.lower_bound(*r); // Find smallest free rectangle which is large enough.
while (f != freeSpace.end() && (f->siz.x < r->siz.x || f->siz.y < r->siz.y))
{
++f; // Rectangle has wrong shape.

0 comments on commit 5b9a496

Please sign in to comment.