-rw-r--r-- | korganizer/komonthview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 7927307..8ee1363 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -767,13 +767,13 @@ int MonthViewCell::insertEvent(Event *event) ++mdayCount; } else { uint i; int pos = mdayCount; for ( i = mdayCount; i < count();++i ) { QListBoxItem* it = this->item ( i ); - if ( text < it->text() ) { + if ( it && text < it->text() ) { pos = i; break; } ++pos; } insertItem( item ,pos); |