Code

get rid of a lot of no longer needed "libnr/nr-..." includes.
[inkscape.git] / src / extension / internal / pdfinput / svg-builder.cpp
index e28264eff9aa2166476c14103418e9ef47c7605d..5a3015aef60ba07ace31c00030ecb870752459cf 100644 (file)
@@ -34,7 +34,6 @@
 #include "io/stringstream.h"
 #include "io/base64stream.h"
 #include "display/nr-filter-utils.h"
-#include "libnr/nr-matrix-ops.h"
 #include "libnr/nr-macros.h"
 #include "libnrtype/font-instance.h"
 
@@ -1210,7 +1209,9 @@ void SvgBuilder::_flushText() {
         last_delta_pos = delta_pos;
 
         // Append the character to the text buffer
-        text_buffer.append((char *)&glyph.code, 1);
+       if (0 != glyph.code[0]) {
+            text_buffer.append((char *)&glyph.code, 1);
+       }
 
         glyphs_in_a_row++;
         i++;