]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/pen.cpp
Better temporary fix.
[wxWidgets.git] / 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;