From e9da688490068209f433022a0d7b0c182ab7569e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 14:39:28 +0000 Subject: [PATCH] Get CALSCALE data in CalendarObject::ProcessBaseData --- .../objects/calendarobject/CalendarObject.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/objects/calendarobject/CalendarObject.cpp b/source/objects/calendarobject/CalendarObject.cpp index 0925b45..d3c6f14 100644 --- a/source/objects/calendarobject/CalendarObject.cpp +++ b/source/objects/calendarobject/CalendarObject.cpp @@ -282,4 +282,22 @@ void CalendarObject::ProcessBaseData(){ } + // Get the method (CALSCALE). + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "CALSCALE"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + CalendarScaleTokens = DataReceived.begin()->first.substr(9); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + CalendarScaleData = DataReceived.begin()->second; + + } + } \ No newline at end of file -- 2.39.5