diff options
author | Philipp Lohmann <pl@openoffice.org> | 2002-03-06 10:06:27 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2002-03-06 10:06:27 +0000 |
commit | c7ba3eb64e6f4ed1f07c80b199e326acaaac195c (patch) | |
tree | aaed5aab8008f98ba5ca6810b0ac8ffcb6f707bd /psprint | |
parent | 7352b7bb5419401bf99d6f646a0f8bccd43dce9e (diff) |
#97829# #i1991# #97954#
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/fontmanager/fontcache.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/psprint/source/fontmanager/fontcache.cxx b/psprint/source/fontmanager/fontcache.cxx index d0e1188e77dd..e94afbf71408 100644 --- a/psprint/source/fontmanager/fontcache.cxx +++ b/psprint/source/fontmanager/fontcache.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontcache.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: pl $ $Date: 2002-03-01 09:31:13 $ + * last change: $Author: pl $ $Date: 2002-03-06 11:06:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,9 +59,8 @@ * ************************************************************************/ -#include <unistd.h> -#include <sys/stat.h> - +#include <stdlib.h> +#include <string.h> #include <psprint/fontcache.hxx> #ifndef _OSL_THREAD_H @@ -74,6 +73,11 @@ #include <tools/stream.hxx> #endif +#include <stdlib.h> +#include <unistd.h> +#include <sys/stat.h> + + using namespace std; using namespace rtl; using namespace psp; @@ -141,7 +145,7 @@ void FontCache::flush() bool bHavePath = false; sal_Int32 nIndex = 0; SvFileStream aStream; - while( nIndex != STRING_NOTFOUND ) + while( nIndex > 0 ) { aPath = aPrinterPath.getToken( 0, ':', nIndex ); aPath.AppendAscii( "/pspfontcache" ); |