For some reason one of the overloads of the c'tor left the m_qtPainter field set to NULL rather than asking the wxDC for it's painter. The rest of the class assumes the painter is not NULL. Closes https://github.com/wxWidgets/wxWidgets/pull/1075