From 1d69b29dec401592bc26f7f96f0d9d6800f6b5a9 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:19:30 +0000 Subject: [PATCH] Add check if multiple properties should be found. --- source/common/text.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/common/text.cpp b/source/common/text.cpp index 377377b..ac9def1 100644 --- a/source/common/text.cpp +++ b/source/common/text.cpp @@ -53,6 +53,16 @@ multimap ProcessTextVectors(vector *TextProperties, ProcessResult.insert(make_pair((*TextProperties)[PropertySeekCount], (*TextValues)[PropertySeekCount])); + // Check to continue if one is found. + + if (SearchMultiple == false){ + + // Found one, don't search for anymore. + + break; + + } + } PropertySeekCount++; -- 2.39.2