diff options
Diffstat (limited to 'korganizer/plugins/printing/year/yearprint.cpp')
-rw-r--r-- | korganizer/plugins/printing/year/yearprint.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/korganizer/plugins/printing/year/yearprint.cpp b/korganizer/plugins/printing/year/yearprint.cpp index 5f3a9dc68..59a43db75 100644 --- a/korganizer/plugins/printing/year/yearprint.cpp +++ b/korganizer/plugins/printing/year/yearprint.cpp @@ -137,13 +137,14 @@ void CalPrintYear::setDateRange( const TQDate& from, const TQDate& to ) void CalPrintYear::print( TQPainter &p, int width, int height ) { -kdDebug()<<"CalPrintYear::print, width: "<<width<<", height: "<<height<<endl; - TQRect headerBox( 0, 0, width, headerHeight() ); -kdDebug()<<"headerBox: "<<headerBox<<endl; const KCalendarSystem *calsys = calendarSystem(); KLocale *locale = KGlobal::locale(); if ( !calsys || !locale ) return; + TQRect headerBox( 0, 0, width, headerHeight() ); + TQRect footerBox( 0, height - footerHeight(), width, footerHeight() ); + height -= footerHeight(); + TQDate start; calsys->setYMD( start, mYear, 1, 1 ); @@ -197,6 +198,8 @@ kdDebug()<<"headerBox: "<<headerBox<<endl; temp = calsys->addMonths( temp, 1 ); } + + drawFooter( p, footerBox ); start = calsys->addMonths( start, monthsPerPage ); } } |