From 8c3ffd801b8a316dcaf51f988002e324979d9bbd Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Sep 2017 22:26:07 +0100 Subject: [PATCH] Spacing clear up --- source/forms/eventeditor/frmEventEditor.cpp | 30 ++++++++++----------- source/forms/preferences/frmPreferences.cpp | 2 +- source/widgets/XCCalendarManipulator.cpp | 20 +++++++------- source/widgets/XCCalendarManipulator.h | 2 +- 4 files changed, 27 insertions(+), 27 deletions(-) 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(); diff --git a/source/forms/preferences/frmPreferences.cpp b/source/forms/preferences/frmPreferences.cpp index f35fac1..07a4715 100644 --- a/source/forms/preferences/frmPreferences.cpp +++ b/source/forms/preferences/frmPreferences.cpp @@ -41,7 +41,7 @@ frmPreferencesADT( parent ) NbtPreferences->RemovePage(1); btnAccountAdd->Show(false); - NbtPreferences->ChangeSelection(0); + NbtPreferences->ChangeSelection(0); } diff --git a/source/widgets/XCCalendarManipulator.cpp b/source/widgets/XCCalendarManipulator.cpp index 4ca64bc..79ed65e 100644 --- a/source/widgets/XCCalendarManipulator.cpp +++ b/source/widgets/XCCalendarManipulator.cpp @@ -247,16 +247,16 @@ void XCCalendarManipulator::ShowCalendarsList(wxCommandEvent &event){ calendarList->UpdateCalendarList(dataStorage); #if defined(__APPLE__) - if (calendarListShow == false) - { - calendarList->Show(); - calendarListShow = true; - } - else - { - calendarList->Hide(); - calendarListShow = false; - } + if (calendarListShow == false) + { + calendarList->Show(); + calendarListShow = true; + } + else + { + calendarList->Hide(); + calendarListShow = false; + } #else calendarList->Popup(); #endif diff --git a/source/widgets/XCCalendarManipulator.h b/source/widgets/XCCalendarManipulator.h index 83365e6..2528e25 100644 --- a/source/widgets/XCCalendarManipulator.h +++ b/source/widgets/XCCalendarManipulator.h @@ -60,7 +60,7 @@ class XCCalendarManipulator: public wxPanel wxBitmap previousIconBitmap; wxBitmap calendarsIconBitmap; #if defined(__APPLE__) - bool calendarListShow = false; + bool calendarListShow = false; #endif void UpdateDateButtonText(); -- 2.39.5