From d5ba48861a534a98f66c1df5735609a23ef74581 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 9 Mar 2015 11:17:41 -0400 Subject: [PATCH] Added warning to ut readGallery --- openbr/plugins/gallery/binary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/gallery/binary.cpp b/openbr/plugins/gallery/binary.cpp index 2e710c0..e66bea8 100644 --- a/openbr/plugins/gallery/binary.cpp +++ b/openbr/plugins/gallery/binary.cpp @@ -272,9 +272,9 @@ class utGallery : public BinaryGallery t.file.set("Label", ut.label); t.append(cv::Mat(1, dataSize, CV_8UC1, dataStart).clone() /* We don't want a shallow copy! */); } else { + if (!gallery.atEnd()) + qWarning("Failed to read universal template header!"); gallery.close(); - /*if (!gallery.atEnd()) - qFatal("Failed to read universal template header!");*/ } return t; } -- libgit2 0.21.4