X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04a18b0d958a3c7507089dc374e71bdad143981d..f11896042326e05d5c717159f9a7e6fd9f6bc404:/src/msw/pen.cpp diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index ce9d1dc9e8..d072864e47 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -128,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;