Commit d5ba48861a534a98f66c1df5735609a23ef74581

Authored by Scott Klum
1 parent 8e581750

Added warning to ut readGallery

openbr/plugins/gallery/binary.cpp
... ... @@ -272,9 +272,9 @@ class utGallery : public BinaryGallery
272 272 t.file.set("Label", ut.label);
273 273 t.append(cv::Mat(1, dataSize, CV_8UC1, dataStart).clone() /* We don't want a shallow copy! */);
274 274 } else {
  275 + if (!gallery.atEnd())
  276 + qWarning("Failed to read universal template header!");
275 277 gallery.close();
276   - /*if (!gallery.atEnd())
277   - qFatal("Failed to read universal template header!");*/
278 278 }
279 279 return t;
280 280 }
... ...