r20629 - gnucash/trunk/src/business/business-gnome - Fix improper qof instance conversion in owner plugin page
Geert Janssens
gjanssens at code.gnucash.org
Wed May 11 17:52:30 EDT 2011
Author: gjanssens
Date: 2011-05-11 17:52:30 -0400 (Wed, 11 May 2011)
New Revision: 20629
Trac: http://svn.gnucash.org/trac/changeset/20629
Modified:
gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c
Log:
Fix improper qof instance conversion in owner plugin page
Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c 2011-05-11 21:52:20 UTC (rev 20628)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c 2011-05-11 21:52:30 UTC (rev 20629)
@@ -751,8 +751,7 @@
/* If the owner has objects referring to it, show the list - the owner can't be deleted until these
references are dealt with. */
- /* XXX is this actually ok ? Can a generic owner type be cast to a qof instance ? */
- list = qof_instance_get_referring_object_list(QOF_INSTANCE(owner));
+ list = qof_instance_get_referring_object_list(QOF_INSTANCE(gncOwnerGetUndefined(owner)));
if (list != NULL)
{
#define EXPLANATION "The list below shows objects which make use of the owner which you want to delete.\nBefore you can delete it, you must either delete those objects or else modify them so they make use\nof another owner"
More information about the gnucash-changes
mailing list