[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 121166] Labels with borders don't always have equal borders on
From:       Andrew Walker <arwalker () sumusltd ! com>
Date:       2006-03-17 20:45:05
Message-ID: 20060317204505.23162.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=121166         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2006-03-17 21:45 -------
SVN commit 519685 by arwalker:

BUG:121166 Correctly define the clip region.

 M  +1 -1      kstviewlabel.cpp  
 M  +2 -2      kstviewpicture.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlabel.cpp #519684:519685
 @ -426,7 +426,7  @
     _myClipMask = QRegion(bm);
     _myClipMask.translate(cr.topLeft().x(), cr.topLeft().y());
 
-    QBitmap bm1(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+    QBitmap bm1(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
     if (!bm1.isNull()) {
       KstPainter p;
       p.setMakingMask(true);
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewpicture.cpp #519684:519685
 @ -71,7 +71,7  @
 QRegion KstViewPicture::clipRegion() {
   if (_clipMask.isNull()) {
     _myClipMask = QRegion();
-    QBitmap bm1(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+    QBitmap bm1(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
     if (!bm1.isNull()) {
       KstPainter p;
       p.setMakingMask(true);
 @ -82,7 +82,7  @
       p.end();
       _clipMask = QRegion(bm1);
     }
-    QBitmap bm2(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+    QBitmap bm2(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
     if (!bm2.isNull()) {
       KstPainter p;
       p.setMakingMask(true);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic