aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-05-17 23:53:51 +0800
committerMilan Crha <mcrha@redhat.com>2011-05-17 23:54:29 +0800
commitadb5413b4a1f713418178e243c7447766f526e3e (patch)
tree4a79bcd3145167603c48b2baa725773c16cb6f1c
parent1979fb178560a6e8af7fb9b9a0d32c152fff2fe8 (diff)
downloadgsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar.gz
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar.bz2
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar.lz
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar.xz
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.tar.zst
gsoc2013-evolution-adb5413b4a1f713418178e243c7447766f526e3e.zip
Bug #647785 - Pasting an 24h event in month and week view doesn't work
-rw-r--r--calendar/gui/e-calendar-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 68d2dccc5a..34f6eae6b0 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;