X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b0975a38e83e3a5a3874c4526bc0cee279305be..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/msw/pen.cpp diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index 93776357d4..d072864e47 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -47,6 +47,7 @@ wxPenRefData::wxPenRefData() } wxPenRefData::wxPenRefData(const wxPenRefData& data) + :wxGDIRefData() { m_style = data.m_style; m_width = data.m_width; @@ -127,11 +128,11 @@ bool wxPen::RealizeResource() #if !defined(__WXMICROWIN__) && !defined(__WXWINCE__) // Only NT can display dashed or dotted lines with width > 1 if ( os != wxWINDOWS_NT && - (M_PENDATA->m_style & (wxDOT | - wxLONG_DASH | - wxSHORT_DASH | - wxDOT_DASH | - wxUSER_DASH)) && + (M_PENDATA->m_style == wxDOT || + M_PENDATA->m_style == wxLONG_DASH || + M_PENDATA->m_style == wxSHORT_DASH || + M_PENDATA->m_style == wxDOT_DASH || + M_PENDATA->m_style == wxUSER_DASH) && M_PENDATA->m_width > 1 ) { M_PENDATA->m_width = 1;