From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:19:30 +0000 (+0000) Subject: Add check if multiple properties should be found. X-Git-Tag: release-0.02~755 X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=commitdiff_plain;h=1d69b29dec401592bc26f7f96f0d9d6800f6b5a9 Add check if multiple properties should be found. --- 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++;