diff options
author | Slávek Banko <[email protected]> | 2014-05-19 19:06:45 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-05-19 19:06:45 +0200 |
commit | 1afc62ef88274fea322f6c53857890fe17c9fdcf (patch) | |
tree | 443b87b0c515b5ec31c006d5d1af3525c3fdbab0 /src/kernel/qwidget_x11.cpp | |
parent | b7d35a6235010df4cdc89961641b57ccb972f7fa (diff) | |
download | qt3-1afc62ef88274fea322f6c53857890fe17c9fdcf.tar.gz qt3-1afc62ef88274fea322f6c53857890fe17c9fdcf.zip |
Fix overwriting memory for an application icon
This resolves Bug 2033
Diffstat (limited to 'src/kernel/qwidget_x11.cpp')
-rw-r--r-- | src/kernel/qwidget_x11.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |