From 1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 19 Feb 2005 20:56:28 +0000 Subject: nochn fix --- diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index ddac6e4..3aaa50a 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -224,7 +224,8 @@ void MonthViewItem::paint(QPainter *p) int size = PIXMAP_SIZE; if ( QApplication::desktop()->width() < 300 ) size = 3; - int y = (height( listBox () ) - size -1 ) /2; + int heihei = height( listBox () ); + int y = (heihei - size -1 ) /2; if ( KOPrefs::instance()->mMonthShowIcons ) { if ( mInfo ) { @@ -288,7 +289,7 @@ void MonthViewItem::paint(QPainter *p) p->drawText( x, yPos, text() ); if ( mIncidence->cancelled() ) { int wid = fm.width( text() ); - p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); + p->drawLine( x, heihei/2 ,x+wid, heihei/2 ); } } -- cgit v0.9.0.2