GtkTextView: don't popdown a bubble if we don't have one

This causes a segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=695304
This commit is contained in:
Giovanni Campagna 2013-03-06 17:04:23 +01:00
parent ea043cab57
commit ca2368dba9

View File

@ -9101,7 +9101,8 @@ text_window_scroll (GtkTextWindow *win,
if (dx != 0 || dy != 0)
{
_gtk_bubble_window_popdown (GTK_BUBBLE_WINDOW (priv->selection_bubble));
if (priv->selection_bubble)
_gtk_bubble_window_popdown (GTK_BUBBLE_WINDOW (priv->selection_bubble));
gdk_window_scroll (win->bin_window, dx, dy);
}
}