From aa2f364e34bc8798f68a1585d089bdf11f56e648 Mon Sep 17 00:00:00 2001
From: Stefan Neis <Stefan.Neis@t-online.de>
Date: Sun, 16 Jul 2006 15:46:35 +0000
Subject: [PATCH] Avoid using invalid parameters for GpiSetAttrs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/os2/pen.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/os2/pen.cpp b/src/os2/pen.cpp
index b5699b6ae4..4079248642 100644
--- a/src/os2/pen.cpp
+++ b/src/os2/pen.cpp
@@ -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;
-- 
2.47.2