X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1b806b98241ab649c169aaa1f134df85e80fb8b..59859d3da18244fa31f82c30ded14f619c3c967f:/src/generic/dcpsg.cpp?ds=inline diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 5693d2f236..a490757cb0 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -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;