summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-03-08 01:49:48 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-03-08 01:49:48 +0000
commitb424b77a0ad498c258877ab8d0aab6afa6e2f499 (patch)
tree69be61fc26b422e33b61e628c6b4a1502641215d /pango
parent17a36cd568219f8684962c274cd4832ad0feb1b2 (diff)
downloadpango-b424b77a0ad498c258877ab8d0aab6afa6e2f499.tar.gz
fix a cheesy bug in setting approximate_digit_width
2001-03-07 Havoc Pennington <hp@redhat.com> * pango/pangox.c (pango_x_font_get_metrics): fix a cheesy bug in setting approximate_digit_width
Diffstat (limited to 'pango')
-rw-r--r--pango/pangox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangox.c b/pango/pangox.c
index 06b4cea8..bbe734c8 100644
--- a/pango/pangox.c
+++ b/pango/pangox.c
@@ -801,8 +801,8 @@ pango_x_font_get_metrics (PangoFont *font,
pango_layout_set_text (layout, "0123456789", -1);
pango_layout_get_extents (layout, NULL, &extents);
-
- metrics->approximate_digit_width = extents.width / 10;
+
+ info->metrics.approximate_digit_width = extents.width / 10.0;
g_object_unref (G_OBJECT (layout));
g_object_unref (G_OBJECT (context));