Checked in patch for bug 257943 ( using year == -1 ):

Crash after adding a new task : invalid DTSTART entry
This commit is contained in:
mostafah%oeone.com 2004-11-01 21:52:09 +00:00
Родитель b6e1d623bc
Коммит 5426764685
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -1226,6 +1226,16 @@ icaltimetype oeICalEventImpl::GetNextAlarmTime( icaltimetype begin ) {
if( !m_hasalarm )
return result;
// Check for related to the start, and no start set
// or a start year set to -1, which might occur for invalid start times
// due to timezone weirdness
PRBool isSet = PR_FALSE;
m_start->GetIsSet(&isSet);
PRInt16 year;
m_start->GetYear(&year);
if( m_alarmtriggerrelation == ICAL_RELATED_START && (!isSet || year == -1) )
return result;
icaltimetype starting = begin;
if( !icaltime_is_null_time( m_lastalarmack ) && icaltime_compare( begin, m_lastalarmack ) < 0 )