From 479f463040db7ee222d4d82e25493e417e06e464 Mon Sep 17 00:00:00 2001 From: Austin Blanton Date: Fri, 8 Nov 2013 09:48:20 -0500 Subject: [PATCH] Keep all rects in Contract --- openbr/plugins/meta.cpp | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/meta.cpp b/openbr/plugins/meta.cpp index fecc52b..7d61341 100644 --- a/openbr/plugins/meta.cpp +++ b/openbr/plugins/meta.cpp @@ -274,6 +274,11 @@ class ContractTransform : public UntrainableMetaTransform foreach (const Template & t, src) { out.merge(t); } + out.file.clearRects(); + foreach (const Template & t, src) { + if (!t.file.rects().empty()) + out.file.appendRects(t.file.rects()); + } dst.clear(); dst.append(out); } -- libgit2 0.21.4