[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Wed Aug 2 00:18:44 CEST 2006
SVN commit 568678 by arwalker:
BUG:131693 Don't try to paint to an empty bitmap as it causes a crash.
M +10 -8 kstviewlegend.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.cpp #568677:568678
@@ -219,14 +219,16 @@
setDirty(false);
_backBuffer.buffer().resize(contentsRect().size());
- _backBuffer.buffer().fill(backgroundColor());
- KstPainter p;
- p.begin(&_backBuffer.buffer());
- QPen pen;
- pen.setColor(foregroundColor());
- p.setPen(pen);
- drawToPainter(p);
- p.end();
+ if (!contentsRect().size().isEmpty()) {
+ _backBuffer.buffer().fill(backgroundColor());
+ KstPainter p;
+ p.begin(&_backBuffer.buffer());
+ QPen pen;
+ pen.setColor(foregroundColor());
+ p.setPen(pen);
+ drawToPainter(p);
+ p.end();
+ }
}
More information about the Kst
mailing list