[poppler] poppler/TextOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Mar 29 14:47:06 PDT 2009


 poppler/TextOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c6d3e7884010ebdcc961d81ca8c692870fc9b139
Author: Ross Moore <ross at maths.mq.edu.au>
Date:   Sun Mar 29 23:46:09 2009 +0200

    Fix extraction of some ActualText content
    
    Fixes bug #20013

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 721ce45..9e75e65 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -4593,7 +4593,7 @@ void ActualText::endMC(GfxState *state) {
 	length = length/2 - 1;
       uni = new Unicode[length];
       for (i = 0 ; i < length; i++)
-	uni[i] = (uniString[2 + i*2]<<8) + uniString[2 + i*2+1];
+	uni[i] = ((uniString[2 + i*2] & 0xff)<<8)|(uniString[3 + i*2] & 0xff);
 
       text->addChar(state,
 		    actualText_x, actualText_y,


More information about the poppler mailing list