diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-09-06 18:06:15 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-09-06 18:07:19 +0200 |
commit | 47919e05f68a6871031b92ad028e4345a51bf5c9 (patch) | |
tree | 8392ba9bb5b48424acf80970ca10319b2d2fcaba /sw | |
parent | 982b7cb498c3ea1106c5d2184f84989d99b1d942 (diff) |
++bloody_sal_Int32_die_die_die
Change-Id: Ie10748357aa25fc15c05fc1a55434bfa0af9712f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 6590b8a26be6..f9de95a7597f 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2837,7 +2837,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c if( file.open( osl_File_OpenFlag_Write ) != osl::File::E_None ) return; uno::Reference< com::sun::star::io::XOutputStream > xOutStream = m_rExport.GetFilter().openFragmentStream( - OUString( "word/fonts/font" ) + OUString::valueOf( m_nextFontId ) + ".ttf", + OUString( "word/fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf", "application/vnd.openxmlformats-officedocument.obfuscatedFont" ); // Not much point in trying hard with the obfuscation key, whoever reads the spec can read the font anyway, // so just alter the first and last part of the key. @@ -2888,7 +2888,7 @@ void DocxAttributeOutput::EmbedFontStyle( const OUString& name, int tag, const c xOutStream->closeOutput(); OString relId = OUStringToOString( GetExport().GetFilter().addRelation( m_pSerializer->getOutputStream(), "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font", - OUString( "fonts/font" ) + OUString::valueOf( m_nextFontId ) + ".ttf" ), RTL_TEXTENCODING_UTF8 ); + OUString( "fonts/font" ) + OUString::valueOf( static_cast< sal_Int32 >( m_nextFontId )) + ".ttf" ), RTL_TEXTENCODING_UTF8 ); m_pSerializer->singleElementNS( XML_w, tag, FSNS( XML_r, XML_id ), relId.getStr(), FSNS( XML_w, XML_fontKey ), fontKeyStr, |