From dbf15c904425a4358b3c930ddff4c01982138ef6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Jan 2015 21:11:21 +0000 Subject: add a length arg to GetEmbedFontData MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for the cases where we don't want the full result and mark some ultra-dubious code with a TODO Change-Id: I7cf57b8d44bbad2a6db86a8b862a757ae5062c50 Reviewed-on: https://gerrit.libreoffice.org/14189 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/headless/svptext.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl/headless/svptext.cxx') diff --git a/vcl/headless/svptext.cxx b/vcl/headless/svptext.cxx index 8fc51ced7ddb..84a35e103325 100644 --- a/vcl/headless/svptext.cxx +++ b/vcl/headless/svptext.cxx @@ -336,6 +336,7 @@ const void* SvpSalGraphics::GetEmbedFontData( const PhysicalFontFace* pFont, const sal_Ucs* pUnicodes, sal_Int32* pWidths, + size_t nLen, FontSubsetInfo& rInfo, long* pDataLen ) @@ -346,7 +347,7 @@ const void* SvpSalGraphics::GetEmbedFontData( // which this method was created). The correct way would // be to have the GlyphCache search for the PhysicalFontFace pFont psp::fontID aFont = pFont->GetFontId(); - return GenPspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, rInfo, pDataLen ); + return GenPspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, nLen, rInfo, pDataLen ); } void SvpSalGraphics::FreeEmbedFontData( const void* pData, long nLen ) -- cgit