From 1d389f1d7d0be9decaadc79796462bbeef9dbc34 Mon Sep 17 00:00:00 2001 From: bhklein Date: Wed, 28 Jan 2015 18:08:17 -0500 Subject: [PATCH] file::appendRect instead of set(rects) when labels missing --- openbr/plugins/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index 80f6174..3aab218 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -764,7 +764,8 @@ public: } else { - dst[i].file.set(labelSet[idx], rectSet[idx]); + if (labels.isEmpty()) dst[i].file.appendRect(rectSet[idx]); + else dst[i].file.set(labelSet[idx], rectSet[idx]); } } } -- libgit2 0.21.4