From 797add969622b3786436365fdd275aff9a9a6373 Mon Sep 17 00:00:00 2001 From: miklosh Date: Mon, 30 Jul 2007 17:23:38 +0000 Subject: [PATCH] Forgot to advance text position when skipping the first space --- src/extension/internal/pdfinput/svg-builder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 3bbe06a57..c5112c5ad 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -1094,6 +1094,8 @@ void SvgBuilder::addChar(GfxState *state, double x, double y, bool is_space = ( uLen == 1 && u[0] == 32 ); // Skip beginning space if ( is_space && _glyphs.size() < 1 ) { + NR::Point delta(dx, dy); + _text_position += delta; return; } // Allow only one space in a row -- 2.30.2