From 588bee169b418f43c80612cea04a5d4479f789ff Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Sun, 11 Aug 2013 12:18:19 -0400 Subject: [PATCH] Contract on an empty src should not yield a dst with one element --- openbr/plugins/meta.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/openbr/plugins/meta.cpp b/openbr/plugins/meta.cpp index 5905c31..1cfd271 100644 --- a/openbr/plugins/meta.cpp +++ b/openbr/plugins/meta.cpp @@ -265,6 +265,7 @@ class ContractTransform : public UntrainableMetaTransform virtual void project(const TemplateList &src, TemplateList &dst) const { //dst = Expanded(src); + if (src.empty()) return; Template out; foreach (const Template & t, src) { -- libgit2 0.21.4