summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/komonthview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index ddac6e4..3aaa50a 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -226,3 +226,4 @@ void MonthViewItem::paint(QPainter *p)
size = 3;
- int y = (height( listBox () ) - size -1 ) /2;
+ int heihei = height( listBox () );
+ int y = (heihei - size -1 ) /2;
@@ -290,3 +291,3 @@ void MonthViewItem::paint(QPainter *p)
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 );
}