summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpainter_x11.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2012-09-14 17:50:21 -0500
committerDarrell Anderson <[email protected]>2012-09-14 17:50:21 -0500
commit41e5b784ee48d2cb403bb551bcbe7cbd322c4336 (patch)
tree57002e3eb08d64f4c7986fa607cc99cda125b92f /src/kernel/qpainter_x11.cpp
parentb9cfa4cf5ea09eb72e1650ccc4c7bbdec89838af (diff)
parent1faf4cf70f8ed79f83bb4e8c1ccbb2c52b1aec44 (diff)
downloadqt3-41e5b784ee48d2cb403bb551bcbe7cbd322c4336.tar.gz
qt3-41e5b784ee48d2cb403bb551bcbe7cbd322c4336.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'src/kernel/qpainter_x11.cpp')
-rw-r--r--src/kernel/qpainter_x11.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp
index 126c0d6..c1e4e07 100644
--- a/src/kernel/qpainter_x11.cpp
+++ b/src/kernel/qpainter_x11.cpp
@@ -1839,7 +1839,8 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h,
static char winfocus_line[] = { 1, 1 };
QPen old_pen = cpen;
- RasterOp old_rop = (RasterOp)rop;
+ QBrush old_brush = cbrush;
+ RasterOp old_rop = (RasterOp)rop;
if ( xorPaint ) {
if ( QColor::numBitPlanes() <= 8 )
@@ -1858,10 +1859,13 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h,
if ( testf(ExtDev) ) {
QPDevCmdParam param[1];
QRect r( x, y, w-1, h-1 );
+ QBrush noBrush;
+ setBrush( noBrush );
param[0].rect = &r;
if ( !pdev->cmd( QPaintDevice::PdcDrawRect, this, param ) || !hd) {
setRasterOp( old_rop );
setPen( old_pen );
+ setBrush( old_brush );
return;
}
}