From 1afc62ef88274fea322f6c53857890fe17c9fdcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 19 May 2014 19:06:45 +0200 Subject: Fix overwriting memory for an application icon This resolves Bug 2033 --- src/kernel/qwidget_x11.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/kernel/qwidget_x11.cpp') diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp index f98a5cb..ddad9cd 100644 --- a/src/kernel/qwidget_x11.cpp +++ b/src/kernel/qwidget_x11.cpp @@ -1336,7 +1336,6 @@ void QWidget::setIcon( const QPixmap &pixmap ) int r = int( qRed( l ) ); int g = int( qGreen( l ) ); int b = int( qBlue( l ) ); - ls[x] = qRgb( r, g, b ); XSetForeground(x11Display(), gc, (r << 16) | (g << 8) | b ); XDrawPoint(x11Display(), pmHandle, gc, x, y); } -- cgit v1.2.1