]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/pen.cpp
Implement wxIcon::LoadFile by defering to wxBitmap implementation instead of creating...
[wxWidgets.git] / src / os2 / pen.cpp
index b5699b6ae49ae3c1802d990b0897dec3b859d1a6..24d89e39b2a1397e725dee7130e09f71d7f27f1a 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;
@@ -302,7 +304,7 @@ bool wxPen::RealizeResource()
     return false;
 } // end of wxPen::RealizeResource
 
-WXHANDLE wxPen::GetResourceHandle()
+WXHANDLE wxPen::GetResourceHandle() const
 {
     if (!M_PENDATA)
         return 0;