summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-09-24 22:31:15 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-09-24 22:31:15 +0000
commitc94d7be497f178edf03ee68ac27b3bfe22623c79 (patch)
tree3a0adbdd95e2759aa76da5371c3ead31deac523e /pango/break.c
parent2f01311f451738499e0b9e3de111e04e2f45d830 (diff)
downloadpango-c94d7be497f178edf03ee68ac27b3bfe22623c79.tar.gz
Only reset the word type to WordNone at a word end if it is not also a
2003-09-25 Matthias Clasen <maclas@gmx.de> * pango/break.c (pango_default_break): Only reset the word type to WordNone at a word end if it is not also a word start. Otherwise both 't' and 'e' are classified as word start in '123test'. (#122754, Hidetoshi Tajima)
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pango/break.c b/pango/break.c
index bbe6b730..88a138b6 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -834,11 +834,9 @@ pango_default_break (const gchar *text,
default:
/* Punctuation, control/format chars, etc. all end a word. */
attrs[i].is_word_end = TRUE;
+ current_word_type = WordNone;
break;
}
-
- if (attrs[i].is_word_end)
- current_word_type = WordNone;
}
else
{
@@ -1548,4 +1546,3 @@ pango_get_log_attrs (const char *text,
log_attrs + chars_broken,
attrs_len - chars_broken);
}
-