]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
Merge SOC2009_FSWATCHER branch into trunk.
[wxWidgets.git] / src / msw / dc.cpp
index 15f83c4955d97322ef583faea5d09bae3de2a40c..54b5e781fa6614e1e4497225a042bb375101e528 100644 (file)
@@ -965,7 +965,7 @@ void wxMSWDCImpl::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wx
     // Windows draws the filled rectangles without outline (i.e. drawn with a
     // transparent pen) one pixel smaller in both directions and we want them
     // to have the same size regardless of which pen is used - adjust
-    if ( m_pen.GetStyle() == wxPENSTYLE_TRANSPARENT )
+    if ( m_pen.IsOk() && m_pen.GetStyle() == wxPENSTYLE_TRANSPARENT )
     {
         x2++;
         y2++;