Fix Fedora-19 Segmentation fault, bugid 968817.
This commit is contained in:
parent
8ce1a9476d
commit
d7045e2b61
|
@ -1780,6 +1780,12 @@ gtk_xtext_scrolldown_timeout (GtkXText * xtext)
|
|||
GtkAdjustment *adj = xtext->adj;
|
||||
textentry *ent;
|
||||
|
||||
if (buf->last_ent_end == NULL) /* If context has changed */
|
||||
{
|
||||
xtext->scroll_tag = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
||||
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, 0, &win_height);
|
||||
|
||||
|
@ -1821,6 +1827,12 @@ gtk_xtext_scrollup_timeout (GtkXText * xtext)
|
|||
GtkAdjustment *adj = xtext->adj;
|
||||
textentry *ent;
|
||||
|
||||
if (buf->last_ent_start == NULL) /* If context has changed */
|
||||
{
|
||||
xtext->scroll_tag = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
||||
|
||||
if (p_y < 0 && adj->value >= 0)
|
||||
|
|
Loading…
Reference in New Issue