]> Git trees. - libqmvoc.git/commitdiff
Make ExtDateTable highlight the correct date in its calendar grid.
authorJason Harris <kstars@30doradus.org>
Mon, 29 Oct 2007 04:07:07 +0000 (04:07 +0000)
committerJason Harris <kstars@30doradus.org>
Mon, 29 Oct 2007 04:07:07 +0000 (04:07 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=730519

extdate/extdatetbl.cpp

index c652f24b3c61587c0e5accc36e1c3a2298ad5cac..97867ab7fc4276f4fa60312395ac0652b2d770af 100644 (file)
@@ -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));