Bug 113376

Summary: calendar month view events not shown
Product: [Applications] korganizer Reporter: Michael W. Holdeman <mikeh>
Component: generalAssignee: Reinhold Kainhofer <reinhold>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael W. Holdeman 2005-09-26 19:59:33 UTC
Version:            (using KDE KDE 3.4.90)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.4 
OS:                Linux

In 3.5_beta1 day-long events are not displayed in month view.  They appear in week-day, agenda type views but not in month.
Comment 1 Horacio Sanson 2005-10-17 04:40:54 UTC
Confirmed here. I imported my calendar files from my previous installation and I can see all my old events in all views. The problem is when adding new events, they are not displayed in month view but they appear in other views (week, 3 days, work week, etc.).

This happens only with newly created events (imported events  from my old installation display ok in all views) and I get this problem in day-long events as in events with associated time.

Using kde-3.5_beta1 installed using gentoo ebuilds.
Comment 2 Martin Grohman 2005-10-21 16:45:55 UTC
Confirmed here too. I found that in month view only appear events that have time set. Events that don't have time set are ok anywhere else but not in month view.

Using Gentoo ebuil kde-3.5 beta2
Comment 3 Martin Grohman 2005-10-21 16:52:37 UTC
The same behavior on Fedora Core 4 testing.
Comment 4 Reinhold Kainhofer 2005-10-26 00:46:39 UTC
SVN commit 474284 by kainhofe:

Patch from Kevin Gilbert <kev.gilbert@cdu.edu.au>:
Fix bug in the month view where all-day events weren't shown on their last day
(so one-day events weren't shown at all). 

BUG:113376
BUG:114772



 M  +1 -1      komonthview.cpp  


--- branches/KDE/3.5/kdepim/korganizer/komonthview.cpp #474283:474284
@@ -960,7 +960,7 @@
      }
   } else if ( event ) {
       for ( QDateTime _date = date;
-            _date < event->dtEnd(); _date = _date.addDays( 1 ) ) {
+            _date <= event->dtEnd(); _date = _date.addDays( 1 ) ) {
         mvc = lookupCellByDate( _date.date() );
         if ( mvc ) mvc->addIncidence( event );
       }