]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid using invalid parameters for GpiSetAttrs.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 16 Jul 2006 15:46:35 +0000 (15:46 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 16 Jul 2006 15:46:35 +0000 (15:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/pen.cpp

index b5699b6ae49ae3c1802d990b0897dec3b859d1a6..407924864227667184754b9eb33bacb3064d43e4 100644 (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;