Avoid using invalid parameters for GpiSetAttrs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2006-07-16 15:46:35 +00:00
parent 2f68106fa0
commit aa2f364e34

View File

@ -193,6 +193,8 @@ bool wxPen::RealizeResource()
}
m_vLineBundle.lColor = (LONG)vPmColour;
m_vLineBundle.usMixMode = FM_OVERPAINT;
if (M_PENDATA->m_nWidth < 1)
M_PENDATA->m_nWidth = 1;
m_vLineBundle.fxWidth = M_PENDATA->m_nWidth;
m_vLineBundle.lGeomWidth = M_PENDATA->m_nWidth;
m_vLineBundle.usType = uLineType;