From 5f21b769b5246aa1e3b9cbf3dfcda71255b9cfee Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 12 Nov 2014 08:36:17 -0500 Subject: [PATCH] handle AlgorithmID=-3 the same way --- openbr/plugins/gallery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index 26dea7e..b9025ad 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -254,7 +254,7 @@ class utGallery : public BinaryGallery t.file.set("URL", QString(data.data())); char *dataStart = data.data() + ut.urlSize; uint32_t dataSize = ut.size - ut.urlSize; - if (ut.algorithmID == -1 || ut.algorithmID == -2) { + if ((ut.algorithmID <= -1) && (ut.algorithmID >= -3)) { t.file.set("FrontalFace", QRectF(ut.x, ut.y, ut.width, ut.height)); uint32_t *rightEyeX = reinterpret_cast(dataStart); dataStart += sizeof(uint32_t); -- libgit2 0.21.4