X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edd971741e8778de6b709f0a4aa59e5b5f93e54e..abfcca57dd0d805ceec9e19c4be207614d79252a:/src/msw/pen.cpp diff --git a/src/msw/pen.cpp b/src/msw/pen.cpp index 3149b72ecf..e15f066eda 100644 --- a/src/msw/pen.cpp +++ b/src/msw/pen.cpp @@ -240,8 +240,7 @@ 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 i, dsh; - for (i=0; im_nbDash; i++) + for ( int i = 0; i < M_PENDATA->m_nbDash; i++ ) real_dash[i] = M_PENDATA->m_dash[i] * M_PENDATA->m_width; } else