diff --git a/src/gui/image/qxpmhandler.cpp b/src/gui/image/qxpmhandler.cpp index f9247f9ff0..ae3fc8128d 100644 --- a/src/gui/image/qxpmhandler.cpp +++ b/src/gui/image/qxpmhandler.cpp @@ -1128,12 +1128,11 @@ static bool write_xpm_image(const QImage &sourceImage, QIODevice *device, const const int w = image.width(); const int h = image.height(); int ncolors = 0; - int x, y; // build color table - for(y=0; y(image.constScanLine(y)); - for(x=0; x(image.constScanLine(y)); - for(x=0; x