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:
@@ -193,6 +193,8 @@ bool wxPen::RealizeResource()
|
|||||||
}
|
}
|
||||||
m_vLineBundle.lColor = (LONG)vPmColour;
|
m_vLineBundle.lColor = (LONG)vPmColour;
|
||||||
m_vLineBundle.usMixMode = FM_OVERPAINT;
|
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.fxWidth = M_PENDATA->m_nWidth;
|
||||||
m_vLineBundle.lGeomWidth = M_PENDATA->m_nWidth;
|
m_vLineBundle.lGeomWidth = M_PENDATA->m_nWidth;
|
||||||
m_vLineBundle.usType = uLineType;
|
m_vLineBundle.usType = uLineType;
|
||||||
|
Reference in New Issue
Block a user