From kde-commits Sun Dec 08 23:41:58 2002 From: Antonio Larrosa Jimenez Date: Sun, 08 Dec 2002 23:41:58 +0000 To: kde-commits Subject: kdelibs/kdeui X-MARC-Message: https://marc.info/?l=kde-commits&m=103939104307631 CVS commit by antlarr: Fixed a bug that made konqueror show garbage in the background of the list of files just when opening the context menu (RMB click). This patch depends on the previously committed patch to qt-copy. Can someone backport it to the 3.1 branch? It's not useful there right now, but it will be when people link 3.1 to Qt 3.1.1 or newer (when they include that fix) M +2 -1 klistview.cpp 1.187 --- kdelibs/kdeui/klistview.cpp #1.186:1.187 @@ -2080,5 +2080,6 @@ void KListViewItem::paintCell(QPainter * { _cg.setBrush(QColorGroup::Base, QBrush(backgroundColor(), *pm)); - p->setBrushOrigin( -listView()->contentsX(), -listView()->contentsY() ); + QPoint o = p->brushOrigin(); + p->setBrushOrigin( o.x()-listView()->contentsX(), o.y()-listView()->contentsY() ); } else if (isAlternate())