mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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)
|
||||
{
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user