diff --git a/src/wxcommon/Region.cxx b/src/wxcommon/Region.cxx index 7d6b115824..015dadd3e3 100644 --- a/src/wxcommon/Region.cxx +++ b/src/wxcommon/Region.cxx @@ -1114,6 +1114,8 @@ void wxRegion::InstallPS(wxPostScriptDC *dc, wxPSStream *s) { Bool oe; + if (!prgn) return; /* shouldn't happen */ + s->Out("newpath\n"); oe = prgn->InstallPS(dc, s);