Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Get CALSCALE data in CalendarObject::ProcessBaseData
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 14:39:28 +0000 (14:39 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 14:39:28 +0000 (14:39 +0000)
source/objects/calendarobject/CalendarObject.cpp

index 0925b45..d3c6f14 100644 (file)
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy