From 90d5c51cca8d41751a0cf284b051f558768fdc29 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Sat, 16 Jun 2007 22:34:33 +0000 Subject: [PATCH] Fixed off by one rendering artifact in modernsystem too. svn path=/trunk/KDE/kdebase/workspace/; revision=676453 --- clients/modernsystem/modernsys.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/modernsystem/modernsys.cpp b/clients/modernsystem/modernsys.cpp index 226eedc4b2..18726a6078 100644 --- a/clients/modernsystem/modernsys.cpp +++ b/clients/modernsystem/modernsys.cpp @@ -649,7 +649,7 @@ void ModernSys::paintEvent( QPaintEvent* ) p.drawLine(width()-hs-1, height()-hw, width()-hs-1, height()-4); p.setPen(Qt::black); - p.drawRect(0, 0, w, h); + p.drawRect(0, 0, w-1, h-1); // handle outline p.drawLine(width()-hw, height()-hs, width(), height()-hs); @@ -658,7 +658,7 @@ void ModernSys::paintEvent( QPaintEvent* ) p.drawLine(width()-hs, height()-hw, width()-hs, height()-2); } else { p.setPen(Qt::black); - p.drawRect(0, 0, w, h); + p.drawRect(0, 0, w-1, h-1); } }