forked from AuroraMiddleware/gtk
gtknotebook: Fix a potential NULL pointer dereference
Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
This commit is contained in:
parent
61c46d911f
commit
c7f5f10853
@ -2637,7 +2637,7 @@ gtk_notebook_draw (GtkWidget *widget,
|
||||
}
|
||||
}
|
||||
|
||||
if (priv->operation == DRAG_OPERATION_REORDER &&
|
||||
if (priv->cur_page && priv->operation == DRAG_OPERATION_REORDER &&
|
||||
gtk_cairo_should_draw_window (cr, priv->drag_window))
|
||||
{
|
||||
cairo_save (cr);
|
||||
|
Loading…
Reference in New Issue
Block a user