From e09672385792a1594700f03e06d1293e352dcd83 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 17 Jul 2017 20:25:42 +0100 Subject: [PATCH] XCCalendarDayEntry: Refresh panel on selection and deselection. --- source/widgets/XCCalendarDayEntry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/widgets/XCCalendarDayEntry.cpp b/source/widgets/XCCalendarDayEntry.cpp index 089110f..491c988 100644 --- a/source/widgets/XCCalendarDayEntry.cpp +++ b/source/widgets/XCCalendarDayEntry.cpp @@ -204,7 +204,8 @@ void XCCalendarDayEntry::LeftClick(wxMouseEvent &mouseEvent){ deselectOthersEvent.SetInt(eventID); deselectOthersEvent.SetId(ID_DESELECTOTHERENTRIES); wxPostEvent(dayPanel, deselectOthersEvent); - + this->Refresh(); + } void XCCalendarDayEntry::RightClick(wxMouseEvent &MouseEvent){ @@ -225,6 +226,7 @@ void XCCalendarDayEntry::RightClick(wxMouseEvent &MouseEvent){ void XCCalendarDayEntry::Deselect(wxCommandEvent &DeselectEvent){ mainPanel->SetBackgroundColour(wxNullColour); + this->Refresh(); } -- 2.39.5