Commit d9e0f22a authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't access attr[-1]. (#153628, Padraig O'Briain)

2004-09-25  Matthias Clasen  <mclasen@x1-6-00-50-fc-70-9f-e0>

	* gtk/gtktextiter.c (inside_word_func): Don't access
	attr[-1].  (#153628, Padraig O'Briain)
parent 0f32b61d
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)
2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips.
......
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)
2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips.
......
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)
2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips.
......
2004-09-25 Matthias Clasen <mclasen@x1-6-00-50-fc-70-9f-e0>
* gtk/gtktextiter.c (inside_word_func): Don't access
attr[-1]. (#153628, Padraig O'Briain)
2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips.
......
......@@ -2804,7 +2804,10 @@ inside_word_func (const PangoLogAttr *attrs,
!(attrs[offset].is_word_start || attrs[offset].is_word_end))
--offset;
return attrs[offset].is_word_start;
if (offset >= 0)
return attrs[offset].is_word_start;
else
return FALSE;
}
/* Sentence funcs */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment