don't assign unicode character if uLen is 0 in drawChar().
authorkramm <kramm>
Fri, 15 Oct 2004 09:46:12 +0000 (09:46 +0000)
committerkramm <kramm>
Fri, 15 Oct 2004 09:46:12 +0000 (09:46 +0000)
pdf2swf/SWFOutputDev.cc

index 08b3c7c..a038076 100644 (file)
@@ -693,9 +693,9 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y,
     state->transform(x, y, &x1, &y1);
     
     Unicode u=0;
-    if(_u) 
+    if(_u && uLen) 
        u = *_u;
-    
+
     /* find out the character name */
     char*name=0;
     if(font->isCIDFont() && u) {