]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/pen.cpp
fixed linker errors
[wxWidgets.git] / src / msw / pen.cpp
index a5a30412ad1ae05d3a97dcdfeecb5222668682b8..a7dc903a5df20282ef0947e6c0804c1acd9a2af5 100644 (file)
@@ -232,8 +232,9 @@ bool wxPen::RealizeResource()
            if (M_PENDATA->m_style==wxUSER_DASH && M_PENDATA->m_nbDash && M_PENDATA->m_dash)
            {
                real_dash = new wxMSWDash[M_PENDATA->m_nbDash];
+               int rw = M_PENDATA->m_width > 1 ? M_PENDATA->m_width : 1;
                for ( int i = 0; i < M_PENDATA->m_nbDash; i++ )
-                   real_dash[i] = M_PENDATA->m_dash[i] * M_PENDATA->m_width;
+                   real_dash[i] = M_PENDATA->m_dash[i] * rw;
            }
            else
            {