From d6db59a2eeae6311abbb40783aae2221661b664c Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 1 Jun 2016 00:07:19 +0100 Subject: [PATCH] DTEND now using the correct variables in SaveData for CalendarEventObject --- .../calendarevent/CalendarEvent-Save.cpp | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/source/objects/calendarevent/CalendarEvent-Save.cpp b/source/objects/calendarevent/CalendarEvent-Save.cpp index a1d743c..1d1edcc 100644 --- a/source/objects/calendarevent/CalendarEvent-Save.cpp +++ b/source/objects/calendarevent/CalendarEvent-Save.cpp @@ -107,33 +107,33 @@ void CalendarEventObject::SaveObjectData(string *SaveData){ // Process the DTEND. - if (DateTimeStartData.size() > 0){ + if (DateTimeEndData.size() > 0){ DataLine += "DTEND"; - if (DateTimeStartDataValue.size() > 0){ + if (DateTimeEndDataValue.size() > 0){ DataLine += ";VALUE="; - DataLine += DateTimeStartDataValue; + DataLine += DateTimeEndDataValue; } - if (DateTimeStartDataTimeZoneID.size() > 0){ + if (DateTimeEndDataTimeZoneID.size() > 0){ DataLine += ";TZID="; - DataLine += DateTimeStartDataTimeZoneID; + DataLine += DateTimeEndDataTimeZoneID; } - if (DateTimeStartDataTokens.size() > 0){ + if (DateTimeEndDataTokens.size() > 0){ DataLine += ";"; - DataLine += DateTimeStartDataTokens; + DataLine += DateTimeEndDataTokens; } DataLine += ":"; - DataLine += DateTimeStartData; + DataLine += DateTimeEndData; DataLine += "\n"; DataLineProcessed = OutputText(&DataLine); @@ -153,14 +153,15 @@ void CalendarEventObject::SaveObjectData(string *SaveData){ if (SummaryDataAltRep.size() > 0){ - DataLine += ";ALTREP="; + DataLine += ";ALTREP=\""; DataLine += SummaryDataAltRep; + DataLine += "\""; } if (SummaryDataLanguage.size() > 0){ - DataLine += ";TZID="; + DataLine += ";LANGUAGE="; DataLine += SummaryDataLanguage; } -- 2.39.5