[poppler] poppler/CairoFontEngine.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Feb 4 02:26:58 PST 2012


 poppler/CairoFontEngine.cc |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 1fe27b07975e9a9455708563118fb73cce696f81
Author: Hib Eris <hib at hiberis.nl>
Date:   Tue Jan 31 12:49:01 2012 +0100

    cairo: Remove unused variable in CairoFontEngine.cc
    
    Fixes bug #45442.

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 95ac60d..451eaef 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -106,7 +106,7 @@ CairoFont::getGlyph(CharCode code,
 double
 CairoFont::getSubstitutionCorrection(GfxFont *gfxFont)
 {
-  double w1, w2,w3;
+  double w1, w2;
   CharCode code;
   char *name;
 
@@ -134,7 +134,6 @@ CairoFont::getSubstitutionCorrection(GfxFont *gfxFont)
 
 	cairo_scaled_font_destroy(scaled_font);
 	cairo_font_options_destroy(options);
-	w3 = extents.width;
 	w2 = extents.x_advance;
       }
       if (!gfxFont->isSymbolic()) {


More information about the poppler mailing list