diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index b9025ad..a08a8fa 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -293,7 +293,7 @@ class utGallery : public BinaryGallery uint32_t x = 0, y = 0, width = 0, height = 0; QByteArray header; - if (algorithmID == -1 || algorithmID == -2) { + if ((algorithmID <= -1) && (algorithmID >= -3)) { const QRectF frontalFace = t.file.get("FrontalFace"); x = frontalFace.x(); y = frontalFace.y();