diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-05-22 13:25:49 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-05-22 13:25:49 +0000 |
commit | d226c2b16fa4261d8835f719ad510d2dd44fcfb5 (patch) | |
tree | 0c51f38a6099ba0706c49e867a5d014d975aefc2 /psprint | |
parent | 7d902538c8021a52973cd2b2e01f888be71ad1e2 (diff) |
#85520# evaluate some more afm files
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/fontmanager/fontmanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psprint/source/fontmanager/fontmanager.cxx b/psprint/source/fontmanager/fontmanager.cxx index eba71c16124d..d23393193eca 100644 --- a/psprint/source/fontmanager/fontmanager.cxx +++ b/psprint/source/fontmanager/fontmanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontmanager.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jbu $ $Date: 2001-05-14 08:38:22 $ + * last change: $Author: pl $ $Date: 2001-05-22 14:25:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -466,7 +466,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult FontInfo* pInfo = NULL; int nResult = parseFile( fp, &pInfo, P_ALL ); fclose( fp ); - if( nResult != ok ) + if( ! pInfo || ! pInfo->numOfChars ) { if( pInfo ) freeFontInfo( pInfo ); |