forked from AuroraMiddleware/gtk
Fix a segfault in gtk_assistant_set_current_page
Reported by Tadej Borovšak in bug 610184
This commit is contained in:
parent
c3f0cdcfcf
commit
ddcc305f4e
@ -1554,7 +1554,7 @@ gtk_assistant_set_current_page (GtkAssistant *assistant,
|
||||
if (page_num >= 0)
|
||||
page = (GtkAssistantPage *) g_list_nth_data (priv->pages, page_num);
|
||||
else
|
||||
page = (GtkAssistantPage *) g_list_last (priv->pages);
|
||||
page = (GtkAssistantPage *) g_list_last (priv->pages)->data;
|
||||
|
||||
g_return_if_fail (page != NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user