Commit 27e054397c5bca54ffd9219923b0add970a1e051

Authored by Josh Klontz
Committed by Ben Klein
1 parent 64a0b9f4

don't save matrix data for failure to enroll templates

Showing 1 changed file with 4 additions and 1 deletions
openbr/plugins/gallery.cpp
@@ -209,7 +209,10 @@ class galGallery : public BinaryGallery @@ -209,7 +209,10 @@ class galGallery : public BinaryGallery
209 { 209 {
210 if (t.isEmpty() && t.file.isNull()) 210 if (t.isEmpty() && t.file.isNull())
211 return; 211 return;
212 - stream << t; 212 + else if (t.file.fte)
  213 + stream << Template(t.file); // only write metadata for failure to enroll
  214 + else
  215 + stream << t;
213 } 216 }
214 }; 217 };
215 218