summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/printing/journal/journalprint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/printing/journal/journalprint.cpp')
-rw-r--r--korganizer/plugins/printing/journal/journalprint.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/plugins/printing/journal/journalprint.cpp b/korganizer/plugins/printing/journal/journalprint.cpp
index 551f23a9..93bc51ef 100644
--- a/korganizer/plugins/printing/journal/journalprint.cpp
+++ b/korganizer/plugins/printing/journal/journalprint.cpp
@@ -123,13 +123,19 @@ void CalPrintJournal::print( TQPainter &p, int width, int height )
}
}
- drawHeader( p, i18n("Journal entries"), TQDate(), TQDate(), TQRect( 0, 0, width, headerHeight() ) );
+ TQRect headerBox( 0, 0, width, headerHeight() );
+ TQRect footerBox( 0, height - footerHeight(), width, footerHeight() );
+ height -= footerHeight();
+
+ drawHeader( p, i18n("Journal entries"), TQDate(), TQDate(), headerBox );
y = headerHeight() + 15;
Journal::List::Iterator it = journals.begin();
for ( ; it != journals.end(); ++it ) {
drawJournal( *it, p, x, y, width, height );
}
+
+ drawFooter( p, footerBox );
}
#endif