summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.cpp
authorzautrix <zautrix>2005-02-02 01:54:29 (UTC)
committer zautrix <zautrix>2005-02-02 01:54:29 (UTC)
commit5bc675bc7e9d5d6fa2d2bc48675a7cfa985ab2c7 (patch) (side-by-side diff)
tree5d8092ab72fbd191f6045ff0ff4f81f0ec0d088b /korganizer/komonthview.cpp
parent9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289 (diff)
downloadkdepimpi-5bc675bc7e9d5d6fa2d2bc48675a7cfa985ab2c7.zip
kdepimpi-5bc675bc7e9d5d6fa2d2bc48675a7cfa985ab2c7.tar.gz
kdepimpi-5bc675bc7e9d5d6fa2d2bc48675a7cfa985ab2c7.tar.bz2
abc
Diffstat (limited to 'korganizer/komonthview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 6294b98..0ef5ae4 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -1159,11 +1159,12 @@ void KOMonthView::computeLayoutWeek()
x = 0;
w = colWid;
}
- if ( i == daysToShow-colModulo )
+ if ( ((i) % daysToShow) >= daysToShow-colModulo ) {
++w;
+ }
if ( i >= 5 ) {
- mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2+1,h);
- x -= w/2 ;
+ mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2+w%2,h);
+ x -= (w/2 );
}
else
mDayLabels[i]->setGeometry( x+weeklabelwid,y,w,h);
@@ -1191,6 +1192,9 @@ void KOMonthView::computeLayoutWeek()
mCells[i]->setGeometry ( x+weeklabelwid,y,w,h/2 );
x -= w ;y += h/2;
} else {
+ if ( ((i-1) % daysToShow) >= daysToShow-colModulo ) {
+ ++w;
+ }
mCells[i]->setGeometry ( x+weeklabelwid,y,w,h-h/2 );
y -= h/2;
}