]> granicus.if.org Git - graphviz/commitdiff
round the paragraph size metrics to avoid a difference in results on i386 and x86_64
authorellson <devnull@localhost>
Thu, 21 Feb 2008 13:11:34 +0000 (13:11 +0000)
committerellson <devnull@localhost>
Thu, 21 Feb 2008 13:11:34 +0000 (13:11 +0000)
plugin/pango/gvtextlayout_pango.c

index 899aa1902a0c2139d29a588fbfd0032c9c169593..a382329f9d2fbebf31e15fa43d4cb203639f706b 100644 (file)
@@ -154,8 +154,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 = logical_rect.width * textlayout_scale;
-    para->height = logical_rect.height * textlayout_scale;
+    para->width = ROUND(logical_rect.width * textlayout_scale);
+    para->height = ROUND(logical_rect.height * textlayout_scale);
 
     /* The y offset from baseline to 0,0 of the bitmap representation */
     iter = pango_layout_get_iter (layout);