X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a72ebcd0917c35e860e5c6c4cc528fefa6fa9cdd..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 309f4376de..e824c6e5fd 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -454,7 +454,7 @@ private: void DoInit(HGDIOBJ hgdiobj) { m_hgdiobj = ::SelectObject(m_hdc, hgdiobj); } public: - SelectInHDC() : m_hdc(NULL) { } + SelectInHDC() : m_hdc(NULL), m_hgdiobj(NULL) { } SelectInHDC(HDC hdc, HGDIOBJ hgdiobj) : m_hdc(hdc) { DoInit(hgdiobj); } void Init(HDC hdc, HGDIOBJ hgdiobj)