diff options
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r-- | calendar/gui/calendar-model.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 8a90b507f9..1e64b940c4 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -1415,9 +1415,13 @@ calendar_model_duplicate_value (ETableModel *etm, int col, const void *value) case CAL_COMPONENT_FIELD_COLOR: return (void *) value; - case CAL_COMPONENT_FIELD_COMPONENT: - gtk_object_ref (GTK_OBJECT (value)); - return; + case CAL_COMPONENT_FIELD_COMPONENT: { + CalComponent *comp; + + comp = CAL_COMPONENT (value); + gtk_object_ref (GTK_OBJECT (comp)); + return comp; + } default: g_message ("calendar_model_duplicate_value(): Requested invalid column %d", col); |