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

List:       kde-commits
Subject:    extragear/graphics/kst/kst
From:       Barth Netterfield <netterfield () astro ! utoronto ! ca>
Date:       2006-02-03 21:09:31
Message-ID: 1139000971.516542.20950.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 505434 by netterfield:

Applying George's "empty-labels.patch" patch, with the inadvertently included line stuff 
removed.




 M  +2 -4      kstviewlabel.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #505433:505434
@@ -212,8 +212,6 @@
 
 
 void KstViewLabel::drawToBuffer(Label::Parsed *lp) {
-  setDirty(false);
-
   _backBuffer.buffer().resize(contentsRect().size());
   _backBuffer.buffer().fill(backgroundColor());
   QPainter p(&_backBuffer.buffer());
@@ -458,8 +456,8 @@
   if (_parsed) {
     computeTextSize(_parsed);
   }
-  
-  QSize sz(_textWidth, _textHeight);
+ 
+  QSize sz(kMax(1, _textWidth), kMax(1, _textHeight));
   if (int(_rotation) != 0 && int(_rotation) != 180) {
     QPointArray pts(4);
     pts[0] = QPoint(0, 0);
[prev in list] [next in list] [prev in thread] [next in thread] 

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