From dc0e208682f9e424bf0005ec877f05d87294e59c Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sun, 13 Jan 2013 10:57:59 -0500 Subject: [PATCH] able to enroll PCSO xml format --- sdk/core/bee.cpp | 3 +++ sdk/openbr_plugin.cpp | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/sdk/core/bee.cpp b/sdk/core/bee.cpp index bf26fbc..d5f70d6 100644 --- a/sdk/core/bee.cpp +++ b/sdk/core/bee.cpp @@ -47,6 +47,9 @@ FileList BEE::readSigset(QString sigset, bool ignoreMetadata) file.close(); QDomElement docElem = doc.documentElement(); + if (docElem.nodeName() != "biometric-signature-set") + return fileList; + QDomNode subject = docElem.firstChild(); while (!subject.isNull()) { // Looping through subjects diff --git a/sdk/openbr_plugin.cpp b/sdk/openbr_plugin.cpp index ce4cb8f..a3b2eac 100644 --- a/sdk/openbr_plugin.cpp +++ b/sdk/openbr_plugin.cpp @@ -377,6 +377,10 @@ TemplateList TemplateList::fromInput(const br::File &input) QScopedPointer i(Gallery::make(file)); TemplateList newTemplates = i->read(); + // If input is a Format not a Gallery + if (newTemplates.isEmpty()) + newTemplates.append(input); + // Propogate metadata for (int i=0; i