From e638c8aa70025caedf9cb4c131bb68214c856bf0 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 19 Nov 2003 11:18:15 +0000 Subject: [PATCH] fixed zero coordinate problem in swf_TextSetInfoRecord(). --- pdf2swf/swfoutput.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 9781c71..13ba52f 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -817,8 +817,12 @@ static void putcharacters(TAG*tag) 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)) { -- 1.7.10.4