From a51e12a8e0e924cebbafff2b2dc7e99530cb0522 Mon Sep 17 00:00:00 2001 From: Jason Harris Date: Mon, 29 Oct 2007 04:07:07 +0000 Subject: [PATCH] Make ExtDateTable highlight the correct date in its calendar grid. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=730519 --- extdate/extdatetbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extdate/extdatetbl.cpp b/extdate/extdatetbl.cpp index c652f24..97867ab 100644 --- a/extdate/extdatetbl.cpp +++ b/extdate/extdatetbl.cpp @@ -283,7 +283,7 @@ ExtDateTable::paintCell(QPainter *painter, int row, int col) offset+=7; int dy = d->calendar->day(date); // if( ((offset+dy) == (pos+1)) && hasFocus()) - if( ((offset+dy) == (pos+2)) && hasFocus()) + if( ((offset+dy) == (pos+1)) && hasFocus()) { // draw the currently selected date painter->setPen(palette().color(QPalette::Highlight)); -- 2.47.3