]> granicus.if.org Git - graphviz/commitdiff
windows cairo plugin bottom pixel bug fixed
authorarif <devnull@localhost>
Thu, 7 Jan 2010 20:04:40 +0000 (20:04 +0000)
committerarif <devnull@localhost>
Thu, 7 Jan 2010 20:04:40 +0000 (20:04 +0000)
plugin/pango/gvtextlayout_pango.c

index a5454c7e1eb0c8de348c866e24338906dcfdd6c4..f1953f57483177cea4aecb44718733dec0115bab 100644 (file)
@@ -187,8 +187,8 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
        logical_rect.height = 0;
 
     textlayout_scale = POINTS_PER_INCH / (FONT_DPI * PANGO_SCALE);
-    para->width = (int)(logical_rect.width * textlayout_scale + 1.0);    /* round up so that width/height are never too small */
-    para->height = (int)(logical_rect.height * textlayout_scale + 1.0);
+    para->width = (int)(logical_rect.width * textlayout_scale + 1);    /* round up so that width/height are never too small */
+    para->height = (int)(logical_rect.height * textlayout_scale + 1);
 
     /* The y offset from baseline to 0,0 of the bitmap representation */
     iter = pango_layout_get_iter (layout);