Guard against bad parameter to gnc_plugin_page_invoice_summarybar_position_changed.

This avoids the crash in bug #710979 but doesn't fix the underlying problem.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23346 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2013-10-28 19:17:00 +00:00
parent bc1970bf71
commit 1cfa86695a

View File

@ -621,6 +621,7 @@ gnc_plugin_page_invoice_summarybar_position_changed(gpointer prefs, gchar *pref,
plugin_page = GNC_PLUGIN_PAGE(user_data);
page = GNC_PLUGIN_PAGE_INVOICE (user_data);
g_return_if_fail(page != NULL);
priv = GNC_PLUGIN_PAGE_INVOICE_GET_PRIVATE(page);
if (gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, GNC_PREF_SUMMARYBAR_POSITION_TOP))