X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fforms%2Feventeditor%2FfrmEventEditor.cpp;h=ad9b1846008d2bb06d669c61ace5396244f23bb6;hp=59a747a0c7c55a5926c7ba56162cec6f2a593c08;hb=8c3ffd801b8a316dcaf51f988002e324979d9bbd;hpb=1cd59852938964f4ed718d0447c8417c4a5e53aa diff --git a/source/forms/eventeditor/frmEventEditor.cpp b/source/forms/eventeditor/frmEventEditor.cpp index 59a747a..ad9b184 100644 --- a/source/forms/eventeditor/frmEventEditor.cpp +++ b/source/forms/eventeditor/frmEventEditor.cpp @@ -225,19 +225,19 @@ bool frmEventEditor::SaveContact(){ // Set the data into the calendar event object. eventData.summaryData = txtEventName->GetValue().ToStdString(); - - if (eventData.descriptionList.size() > 0) - { - eventData.descriptionList[0] = txtEventDescription->GetValue().ToStdString(); - } - else - { - eventData.descriptionList.push_back(txtEventDescription->GetValue().ToStdString()); - eventData.descriptionListAltRep.push_back(""); - eventData.descriptionListLanguage.push_back(""); - eventData.descriptionListTokens.push_back(""); - } - + + if (eventData.descriptionList.size() > 0) + { + eventData.descriptionList[0] = txtEventDescription->GetValue().ToStdString(); + } + else + { + eventData.descriptionList.push_back(txtEventDescription->GetValue().ToStdString()); + eventData.descriptionListAltRep.push_back(""); + eventData.descriptionListLanguage.push_back(""); + eventData.descriptionListTokens.push_back(""); + } + eventData.descriptionList.push_back(txtEventDescription->GetValue().ToStdString()); eventData.descriptionListAltRep.push_back(""); eventData.descriptionListLanguage.push_back(""); @@ -310,7 +310,7 @@ bool frmEventEditor::SaveContact(){ EventProperties *eventInfo = new EventProperties; eventInfo->eventName = txtEventName->GetValue().ToStdString(); - eventInfo->eventDescipriton = txtEventDescription->GetValue().ToStdString(); + eventInfo->eventDescipriton = txtEventDescription->GetValue().ToStdString(); eventInfo->calendarID = calendarIDList[cmbCalendar->GetSelection()]; eventInfo->eventID = addEventResult.calendarEntryID; eventInfo->eventYear = dapStartDate->GetValue().GetYear(); @@ -358,7 +358,7 @@ bool frmEventEditor::SaveContact(){ EventProperties *eventInfo = new EventProperties; eventInfo->eventName = txtEventName->GetValue().ToStdString(); - eventInfo->eventDescipriton = txtEventDescription->GetValue().ToStdString(); + eventInfo->eventDescipriton = txtEventDescription->GetValue().ToStdString(); eventInfo->calendarID = calendarID; eventInfo->eventID = eventID; eventInfo->eventYear = dapStartDate->GetValue().GetYear();