[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - vcl/generic

Khaled Hosny khaledhosny at eglug.org
Mon Nov 25 03:22:32 PST 2013


 vcl/generic/print/genpspgraphics.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8b6f67c676d15a3178d268ff9974155d6e130205
Author: Khaled Hosny <khaledhosny at eglug.org>
Date:   Sat Nov 23 13:40:50 2013 +0200

    Correctly check getFileURLFromSystemPath() success
    
    Change-Id: Iadc34171235fec2d6aafd601f62a0bff8ed5b3ee
    Reviewed-on: https://gerrit.libreoffice.org/6770
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index 10af660..993d8d5 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -1390,7 +1390,7 @@ const void* GenPspGraphics::DoGetEmbedFontData( psp::fontID aFont, const sal_Ucs
 #else
     // FIXME: test me ! ...
     OUString aURL;
-    if( !osl::File::getFileURLFromSystemPath( OStringToOUString( aSysPath, osl_getThreadTextEncoding() ), aURL ) )
+    if( osl::File::getFileURLFromSystemPath( OStringToOUString( aSysPath, osl_getThreadTextEncoding() ), aURL ) != osl::File::E_None )
         return NULL;
     osl::File aFile( aURL );
     if( aFile.open( osl_File_OpenFlag_Read | osl_File_OpenFlag_NoLock ) != osl::File::E_None )


More information about the Libreoffice-commits mailing list