diff --git a/lib/ivis_opengl/bitimage.cpp b/lib/ivis_opengl/bitimage.cpp index 46aa18887..1a3faa9a7 100644 --- a/lib/ivis_opengl/bitimage.cpp +++ b/lib/ivis_opengl/bitimage.cpp @@ -66,7 +66,7 @@ inline void ImageMerge::arrange() { --r; - std::set::iterator f = freeSpace.lower_bound(*r); // Find smallest free rectangle which is large enough. + std::multiset::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.