Use AttachPainter() instead of setting m_ownsPainter directly

No real changes, just another tiny simplification.
This commit is contained in:
Vadim Zeitlin
2019-01-21 19:40:22 +01:00
parent 6d91374dff
commit 8434adb00e

View File

@@ -667,8 +667,7 @@ public:
wxQtGraphicsContext(wxGraphicsRenderer* renderer, QPaintDevice* device)
: wxGraphicsContext(renderer)
{
m_qtPainter = new QPainter(device);
m_ownsPainter = true;
AttachPainter(new QPainter(device));
m_width = device->width();
m_height = device->height();