fixes for user dash handling (patch 717736)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-04-11 14:02:32 +00:00
parent 3251b83466
commit e2a5251d01
6 changed files with 54 additions and 12 deletions

View 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
{