fixed text selection with alignzones
authorMatthias Kramm <kramm@quiss.org>
Tue, 1 Dec 2009 02:28:58 +0000 (18:28 -0800)
committerMatthias Kramm <kramm@quiss.org>
Tue, 1 Dec 2009 02:29:19 +0000 (18:29 -0800)
lib/pdf/InfoOutputDev.cc

index a142c77..6e20426 100644 (file)
@@ -144,8 +144,8 @@ static gfxfont_t* createGfxFont(FontInfo*src)
     double scale = 1;
     //printf("%d glyphs\n", font->num_glyphs);
     font->num_glyphs = 0;
-    font->ascent = fabs(src->descender);
-    font->descent = fabs(src->ascender);
+    font->ascent = fabs(src->ascender);
+    font->descent = fabs(src->descender);
     
     for(t=0;t<src->num_glyphs;t++) {
        if(src->glyphs[t]) {