Commit 5f21b769b5246aa1e3b9cbf3dfcda71255b9cfee

Authored by Josh Klontz
1 parent 939a3e69

handle AlgorithmID=-3 the same way

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/gallery.cpp
... ... @@ -254,7 +254,7 @@ class utGallery : public BinaryGallery
254 254 t.file.set("URL", QString(data.data()));
255 255 char *dataStart = data.data() + ut.urlSize;
256 256 uint32_t dataSize = ut.size - ut.urlSize;
257   - if (ut.algorithmID == -1 || ut.algorithmID == -2) {
  257 + if ((ut.algorithmID <= -1) && (ut.algorithmID >= -3)) {
258 258 t.file.set("FrontalFace", QRectF(ut.x, ut.y, ut.width, ut.height));
259 259 uint32_t *rightEyeX = reinterpret_cast<uint32_t*>(dataStart);
260 260 dataStart += sizeof(uint32_t);
... ...