[evolution/gnome-3-0] Bug #647785 - Pasting an 24h event in month and week view doesn't work
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-0] Bug #647785 - Pasting an 24h event in month and week view doesn't work
- Date: Tue, 17 May 2011 15:55:16 +0000 (UTC)
commit f3f9a46b7209747a9ce0c1e0b20cfdf750f85942
Author: Milan Crha <mcrha redhat com>
Date: Tue May 17 17:54:45 2011 +0200
Bug #647785 - Pasting an 24h event in month and week view doesn't work
calendar/gui/e-calendar-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index adaecbd..4f86e8d 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -636,7 +636,7 @@ clipboard_get_calendar_data (ECalendarView *cal_view,
if (!text || !*text)
return;
- icalcomp = icalparser_parse_string ((const gchar *) text);
+ icalcomp = icalparser_parse_string (text);
if (!icalcomp)
return;
@@ -1008,9 +1008,10 @@ e_calendar_view_add_event (ECalendarView *cal_view, ECal *client, time_t dtstart
case GNOME_CAL_MONTH_VIEW:
case GNOME_CAL_LIST_VIEW:
if (old_dtstart.is_date && old_dtend.is_date
- && memcmp (&ic_dur, &ic_oneday, sizeof (ic_dur)) == 0)
+ && memcmp (&ic_dur, &ic_oneday, sizeof (ic_dur)) == 0) {
all_day_event = TRUE;
- else {
+ new_dtstart = dtstart;
+ } else {
icaltimetype new_time = icaltime_from_timet_with_zone (dtstart, FALSE, default_zone);
new_time.hour = old_dtstart.hour;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]