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
This commit is contained in:
Mariano Reingart 2014-09-29 02:58:02 +00:00
parent b56a3f5235
commit 2cc81dd0d5

View File

@ -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();