From a65a90b222d49213b8e7b97faf846cb087365c43 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Fri, 26 Dec 2014 12:21:23 -0500 Subject: [PATCH] Don't overwrite points/rects on a dup. instead, append them. --- openbr/openbr_plugin.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 44c94a3..5ba7b7c 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -81,8 +81,10 @@ QString File::hash() const void File::append(const QVariantMap &metadata) { - foreach (const QString &key, metadata.keys()) - set(key, metadata[key]); + foreach (const QString &key, metadata.keys()) { + if (key != "Points" && key != "Rects") + set(key, metadata[key]); + } } void File::append(const File &other) @@ -96,6 +98,8 @@ void File::append(const File &other) } } append(other.m_metadata); + appendPoints(other.points()); + appendRects(other.rects()); } QList File::split() const -- libgit2 0.21.4