fixed zero coordinate problem in swf_TextSetInfoRecord().
authorkramm <kramm>
Wed, 19 Nov 2003 11:18:15 +0000 (11:18 +0000)
committerkramm <kramm>
Wed, 19 Nov 2003 11:18:15 +0000 (11:18 +0000)
pdf2swf/swfoutput.cc

index 9781c71..13ba52f 100644 (file)
@@ -817,8 +817,12 @@ static void putcharacters(TAG*tag)
                     if(lastx != chardata[t].x ||
                        lasty != chardata[t].y)
                     {
                     if(lastx != chardata[t].x ||
                        lasty != chardata[t].y)
                     {
-                        newx=chardata[t].x;
-                        newy=chardata[t].y;
+                        newx = chardata[t].x;
+                        newy = chardata[t].y;
+                       if(newx == 0)
+                           newx = SET_TO_ZERO;
+                       if(newy == 0)
+                           newy = SET_TO_ZERO;
                     }
                     if(!colorcompare(&color, &chardata[t].color)) 
                     {
                     }
                     if(!colorcompare(&color, &chardata[t].color)) 
                     {