From 79a8a691e973dd2b7726ed199911c3e5fbd16492 Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Fri, 12 Nov 1999 10:51:39 +0000 Subject: [PATCH] Committing in . VMS patch Modified Files: wxWindows/src/generic/dcpsg.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/dcpsg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index bc1b78711d..ad5bf7e968 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1841,7 +1841,8 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string, } #ifdef __UNIX__ - if (afmFile==NULL) +#ifndef __VMS__ + if (afmFile==NULL) /* please do NOT change the line above to "else if (afmFile==NULL)" - - afmFile = fopen() may fail and in that case the next if branch MUST be executed - and it would not if there was "else" */ @@ -1854,6 +1855,7 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string, << name << ".afm"; afmFile = fopen(afmName,"r"); } +#endif #endif if (afmFile==NULL)