From a600c6438fef2f4c06f9a4a7d933d99fb054a973 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 24 Apr 2018 19:18:26 +0200 Subject: Fix compilation with poppler 0.64 --- src/extension/internal/pdfinput/svg-builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/extension/internal/pdfinput/svg-builder.cpp') diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 158c5ae06..8e5a5f639 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -1021,7 +1021,7 @@ void SvgBuilder::updateFont(GfxState *state) { GfxFont *font = state->getFont(); // Store original name if (font->getName()) { - _font_specification = font->getName()->getCString(); + _font_specification = g_strdup(font->getName()->getCString()); } else { _font_specification = (char*) "Arial"; } @@ -1362,7 +1362,7 @@ void SvgBuilder::_flushText() { _glyphs.clear(); } -void SvgBuilder::beginString(GfxState *state, GooString * /*s*/) { +void SvgBuilder::beginString(GfxState *state) { if (_need_font_update) { updateFont(state); } -- cgit v1.2.3