From cbe70d01727ba2575d9d7fbfd30b967332a5eed1 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 4 Nov 2014 12:29:16 -0500 Subject: [PATCH] don't save matrix data for failure to enroll templates --- openbr/plugins/gallery.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index aa76720..26dea7e 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -209,7 +209,10 @@ class galGallery : public BinaryGallery { if (t.isEmpty() && t.file.isNull()) return; - stream << t; + else if (t.file.fte) + stream << Template(t.file); // only write metadata for failure to enroll + else + stream << t; } }; -- libgit2 0.21.4