From 5ec2cf75d0e50102affcc845b214a299e81af53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 19 Jan 2011 03:15:09 +0000 Subject: [PATCH] [GB.QT4] * BUG: DrawingArea draws its border correctly again. git-svn-id: svn://localhost/gambas/trunk@3473 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.qt4/src/CDrawingArea.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gb.qt4/src/CDrawingArea.cpp b/gb.qt4/src/CDrawingArea.cpp index 2e6da2819..48a75d736 100644 --- a/gb.qt4/src/CDrawingArea.cpp +++ b/gb.qt4/src/CDrawingArea.cpp @@ -163,10 +163,11 @@ void MyDrawingArea::redraw(QRect &r, bool frame) if (frame) { - p->setClipping(false); - p->initFrom(this); - p->setRenderHint(QPainter::Antialiasing, false); - drawFrame(p); + QPainter pf(this); + pf.setClipping(false); + pf.initFrom(this); + pf.setRenderHint(QPainter::Antialiasing, false); + drawFrame(&pf); } if (_use_paint)