]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dcpsg.cpp
Disable some wxWebView tests that fail on the buildbot but not locally.
[wxWidgets.git] / src / generic / dcpsg.cpp
index 5693d2f236b32be6fd063359afafb33913a35603..a490757cb05f6601211c314843ff72b60992868c 100644 (file)
@@ -1135,7 +1135,7 @@ void wxPostScriptDCImpl::SetPen( const wxPen& pen )
 
     if (!pen.IsOk()) return;
 
-    int oldStyle = m_pen.GetStyle();
+    int oldStyle = m_pen.IsOk() ? m_pen.GetStyle() : wxPENSTYLE_INVALID;
 
     m_pen = pen;