Code

Forgot to advance text position when skipping the first space
authormiklosh <miklosh@users.sourceforge.net>
Mon, 30 Jul 2007 17:23:38 +0000 (17:23 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Mon, 30 Jul 2007 17:23:38 +0000 (17:23 +0000)
src/extension/internal/pdfinput/svg-builder.cpp

index 3bbe06a575c5d970c619b04aed2034e5e5f345fa..c5112c5adb48574f855c170b739f3c170e51dffa 100644 (file)
@@ -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