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)
This commit is contained in:
Matthias Clasen 2004-09-25 04:31:22 +00:00 committed by Matthias Clasen
parent 0f32b61dde
commit d9e0f22ac7
5 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips. * gtk/gtkfilechooserdefault.c: Add some tooltips.

View File

@ -1,3 +1,8 @@
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> 2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips. * gtk/gtkfilechooserdefault.c: Add some tooltips.

View File

@ -1,3 +1,8 @@
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> 2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips. * gtk/gtkfilechooserdefault.c: Add some tooltips.

View File

@ -1,3 +1,8 @@
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> 2004-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c: Add some tooltips. * gtk/gtkfilechooserdefault.c: Add some tooltips.

View File

@ -2804,7 +2804,10 @@ inside_word_func (const PangoLogAttr *attrs,
!(attrs[offset].is_word_start || attrs[offset].is_word_end)) !(attrs[offset].is_word_start || attrs[offset].is_word_end))
--offset; --offset;
return attrs[offset].is_word_start; if (offset >= 0)
return attrs[offset].is_word_start;
else
return FALSE;
} }
/* Sentence funcs */ /* Sentence funcs */