Kaydet (Commit) 805fc4bf authored tarafından Luboš Luňák's avatar Luboš Luňák

correct flag for file opening

Although it seems reading works even when opened just for write ...

Change-Id: I57039e7b72dd466e1b087c81377b2b2dcd26fb5c
üst 73a24e70
...@@ -3056,7 +3056,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c ...@@ -3056,7 +3056,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c
// and embed it again. // and embed it again.
// TODO IDocumentSettingAccess::EMBED_SYSTEM_FONTS // TODO IDocumentSettingAccess::EMBED_SYSTEM_FONTS
osl::File file( fontUrl ); osl::File file( fontUrl );
if( file.open( osl_File_OpenFlag_Write ) != osl::File::E_None ) if( file.open( osl_File_OpenFlag_Read ) != osl::File::E_None )
return; return;
uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream( uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream(
OUString( "word/fonts/font" ) + OUString::number(m_nextFontId) + ".ttf", OUString( "word/fonts/font" ) + OUString::number(m_nextFontId) + ".ttf",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment