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:
parent
ea043cab57
commit
ca2368dba9
@ -9101,7 +9101,8 @@ text_window_scroll (GtkTextWindow *win,
|
|||||||
|
|
||||||
if (dx != 0 || dy != 0)
|
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);
|
gdk_window_scroll (win->bin_window, dx, dy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user