Fix focus rectangle drawing on external paint device

pull/2/head
Timothy Pearson 12 years ago
parent be8d88eef8
commit 1faf4cf70f

@ -1860,8 +1860,8 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h,
QPDevCmdParam param[1];
QRect r( x, y, w-1, h-1 );
QBrush noBrush;
setBrush( noBrush );
param[0].rect = &r;
param[0].brush = &noBrush;
if ( !pdev->cmd( QPaintDevice::PdcDrawRect, this, param ) || !hd) {
setRasterOp( old_rop );
setPen( old_pen );

Loading…
Cancel
Save