From 71e34a6c2107d0a1852cd8921d3b1d3a1b335868 Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Tue, 6 Aug 2013 16:49:31 -0400 Subject: [PATCH] Propagate metadata from first Template in Flatten --- openbr/plugins/misc.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/misc.cpp b/openbr/plugins/misc.cpp index c0a2644..f7d9e5e 100644 --- a/openbr/plugins/misc.cpp +++ b/openbr/plugins/misc.cpp @@ -554,6 +554,8 @@ class FlattenTransform : public UntrainableMetaTransform void project(const TemplateList &src, TemplateList &dst) const { Template flat; + // let's hope that all Templates belong to the same file + flat.file = src.first().file; foreach (const Template &tmpl, src) flat.append(tmpl); dst.append(flat); -- libgit2 0.21.4