summaryrefslogtreecommitdiff
path: root/glib/guniprop.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-03 23:05:36 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-03 23:05:36 +0000
commitd2a9b31e61e85af8a19ef44cac79067be932370f (patch)
treeaca3a0ad32df5dabca0ebdb9059447dc54d5a825 /glib/guniprop.c
parenta0c60a62d6598be7f5ed00b87ba958c4f1301140 (diff)
downloadglib-d2a9b31e61e85af8a19ef44cac79067be932370f.tar.gz
Take zerowidth and double-width chars into consideration when computing
2007-01-03 Behdad Esfahbod <behdad@gnome.org> * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth), (calculate_max_length), (print_entry), (print_help): Take zerowidth and double-width chars into consideration when computing width of a string. Also fix another bug in width computation. * glib/guniprop.c (g_unichar_iszerowidth): Fix typo. It was not working correctly. svn path=/trunk/; revision=5204
Diffstat (limited to 'glib/guniprop.c')
-rw-r--r--glib/guniprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/guniprop.c b/glib/guniprop.c
index 2292e7604..908d3fe18 100644
--- a/glib/guniprop.c
+++ b/glib/guniprop.c
@@ -380,7 +380,7 @@ g_unichar_iszerowidth (gunichar c)
if (G_UNLIKELY (c == 0x00AD))
return FALSE;
- if (G_UNLIKELY (ISZEROWIDTHTYPE (c)))
+ if (G_UNLIKELY (ISZEROWIDTHTYPE (TYPE (c))))
return TRUE;
if (G_UNLIKELY ((c >= 0x1160 && c < 0x1200) ||