[Kst] extragear/graphics/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Dec 1 23:16:00 CET 2005
SVN commit 484780 by arwalker:
fix display of large palettes
M +3 -1 kstimagedialog_i.cpp
--- trunk/extragear/graphics/kst/kst/kstimagedialog_i.cpp #484779:484780
@@ -572,6 +572,7 @@
QPainter p(&pix);
int size;
int step = 1;
+ int pos = 0;
int i;
size = width / nrColors;
@@ -583,7 +584,8 @@
p.fillRect(p.window(), QColor("white"));
for (i=0; i<nrColors; i+=step) {
color = newPal->color(i);
- p.fillRect(i*size, 0, size, height, QBrush(color));
+ p.fillRect(pos*size, 0, size, height, QBrush(color));
+ ++pos;
}
_w->_paletteDisplay->setPixmap(pix);
More information about the Kst
mailing list