Fix a segfault in gtk_assistant_set_current_page

Reported by Tadej Borovšak in bug 610184
This commit is contained in:
Matthias Clasen 2010-02-23 11:16:04 -05:00
parent c3f0cdcfcf
commit ddcc305f4e

View File

@ -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);