Fixed bug 229329: Incorrect handling of VEVENT lacking DTEND or DURATION

This commit is contained in:
mostafah%oeone.com 2003-12-24 16:07:36 +00:00
Родитель 8c41240ea6
Коммит e128ea8a88
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -2091,8 +2091,6 @@ bool oeICalEventImpl::ParseIcalComponent( icalcomponent *comp )
} else {
if( m_type == ICAL_VEVENT_COMPONENT && !icaltime_is_null_time( m_start->m_datetime ) ) {
m_end->m_datetime = m_start->m_datetime;
m_end->SetHour( 23 );
m_end->SetMinute( 59 );
} else {
m_end->m_datetime = icaltime_null_time();
}
@ -2426,9 +2424,8 @@ icalcomponent* oeICalEventImpl::AsIcalComponent()
//Create enddate if does not exist
if( icaltime_is_null_time( m_end->m_datetime ) && !icaltime_is_null_time( m_start->m_datetime ) ) {
//Set to the same as start date 23:59
//Set to the same as start date
m_end->m_datetime = m_start->m_datetime;
m_end->SetHour( 23 ); m_end->SetMinute( 59 );
}
//recurunits