From 2cc81dd0d56eda50c89423479d086c54a12354e1 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 29 Sep 2014 02:58:02 +0000 Subject: [PATCH] Handle drawing lines correctly in wxQT, thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/dc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/dc.cpp b/src/qt/dc.cpp index aa133f8721..89f6c72811 100644 --- a/src/qt/dc.cpp +++ b/src/qt/dc.cpp @@ -741,7 +741,11 @@ void wxQtDCImpl::DoDrawLines(int n, const wxPoint points[], } m_qtPainter->translate(xoffset, yoffset); + + QBrush savebrush = m_qtPainter->brush(); + m_qtPainter->setBrush(Qt::NoBrush); m_qtPainter->drawPath(path); + m_qtPainter->setBrush(savebrush); // Reset transform ComputeScaleAndOrigin();