Commit cbe70d01727ba2575d9d7fbfd30b967332a5eed1

Authored by Josh Klontz
1 parent 755b71c4

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 209 {
210 210 if (t.isEmpty() && t.file.isNull())
211 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  
... ...