From: arif Date: Thu, 7 Jan 2010 20:04:40 +0000 (+0000) Subject: windows cairo plugin bottom pixel bug fixed X-Git-Tag: LAST_LIBGRAPH~32^2~1489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0e1e8450aafcdcb28d28b3b45b5456bfa3d852f;p=graphviz windows cairo plugin bottom pixel bug fixed --- diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c index a5454c7e1..f1953f574 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -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);