diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index cd59b3e..ffe662c 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -157,7 +157,7 @@ class BinaryGallery : public Gallery break; } - *done = stream.atEnd(); + *done = gallery.pos() == gallery.size(); return templates; }