summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-01-30 20:00:21 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-01 14:20:34 +0100
commit805fc4bf039e011591d29f8a75e53c0b1b3a3c6b (patch)
treedfb7e1d789aafbda0f2ad831f1870d2ac2bcaccb
parent73a24e709396e4dd906b8cfbd7719e51f29dd3a7 (diff)
correct flag for file opening
Although it seems reading works even when opened just for write ... Change-Id: I57039e7b72dd466e1b087c81377b2b2dcd26fb5c
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 917ddb5a7896..a2ed719bb62c 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3056,7 +3056,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c
// and embed it again.
// TODO IDocumentSettingAccess::EMBED_SYSTEM_FONTS
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;
uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream(
OUString( "word/fonts/font" ) + OUString::number(m_nextFontId) + ".ttf",