From 703756f99c0d7bc115b97fbf96e3e153f512a2b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 19 Sep 2008 10:04:06 +0000 Subject: [PATCH] * attempt to fix bug 5189. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26453 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/IconPalette.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/IconPalette.cpp b/src/frontends/qt4/IconPalette.cpp index f156cca1c9..af4d9db098 100644 --- a/src/frontends/qt4/IconPalette.cpp +++ b/src/frontends/qt4/IconPalette.cpp @@ -213,10 +213,10 @@ void IconPalette::paintEvent(QPaintEvent * /*event*/) if (fw && !tornoff_) { QPainter p(this); QRegion borderReg; - borderReg += QRect(0, 0, fw, height()); //left - borderReg += QRect(width() - fw, 0, fw, height()); //right - borderReg += QRect(0, 0, width(), fw); //top - borderReg += QRect(0, height() - fw, width(), fw); //bottom + borderReg += QRegion(QRect(0, 0, fw, height())); //left + borderReg += QRegion(QRect(width() - fw, 0, fw, height())); //right + borderReg += QRegion(QRect(0, 0, width(), fw)); //top + borderReg += QRegion(QRect(0, height() - fw, width(), fw)); //bottom p.setClipRegion(borderReg); QStyleOptionFrame frame; frame.rect = rect(); -- 2.39.2