[Kst] extragear/graphics/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Fri Feb 3 22:09:31 CET 2006
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);
More information about the Kst
mailing list