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