[Kst] kdeextragear-2/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Jul 8 21:32:31 CEST 2004
CVS commit by netterfield:
Ahem....
(fix too many redraws)
M +2 -5 kst2dplot.cpp 1.139
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.138:1.139
@@ -919,8 +919,4 @@ void Kst2DPlot::updateTieBox(QPainter& p
void Kst2DPlot::paint(KstPaintType type, QPainter& p) {
if ((type == P_EXPORT) || (type == P_PRINT)) {
-// printf("s: %d %d %d %d\n", p.viewport().width(), p.viewport().height(),
-// geometry().width(), geometry().height());
-// printf("g: %d %d %d %d\n", geometry().left(), geometry().top(),
-// geometry().width(), geometry().height());
QRect window_hold = p.window();
QRect viewport_hold = p.viewport();
@@ -940,5 +936,5 @@ void Kst2DPlot::paint(KstPaintType type,
/* check for optimizations */
- bool doDraw = false;
+ bool doDraw = true;
if (type == P_PAINT) {
if (_oldSize == size()) {
@@ -961,4 +957,5 @@ void Kst2DPlot::paint(KstPaintType type,
if (doDraw) {
draw();
+ _dirty = false;
}
_buffer.paintInto(p, geometry());
More information about the Kst
mailing list