From f3ebca94dddd57008b48c466d3e4919ba4e6a6f4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Apr 2005 16:27:05 +0000 Subject: [PATCH] fixed tests for dashed/dotted pens under OS != NT (bug 1182319) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/pen.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.47.2