r22465 - gnucash/trunk/src/engine - Allow SchedXaction to safely handle having g_object_property_set called on
Phil Longstaff
phil.longstaff at yahoo.ca
Sun Oct 28 14:51:03 EDT 2012
How about an else clause in case the value is invalid?
________________________________
From: John Ralls <jralls at code.gnucash.org>
To: gnucash-patches at gnucash.org
Sent: Saturday, October 27, 2012 7:30:57 PM
Subject: r22465 - gnucash/trunk/src/engine - Allow SchedXaction to safely handle having g_object_property_set called on
Author: jralls
Date: 2012-10-27 19:30:56 -0400 (Sat, 27 Oct 2012)
New Revision: 22465
Trac: http://svn.gnucash.org/trac/changeset/22465
Modified:
gnucash/trunk/src/engine/SchedXaction.c
Log:
Allow SchedXaction to safely handle having g_object_property_set called on
end_date and last_date with invalid GDates.
This happens routinely when those values are empty and are restored from
SQL. Thanks to all warnings being fatal when testing, this caused the dbi
tests to fail.
[BP]
_______________________________________________
gnucash-patches mailing list
gnucash-patches at gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-patches
More information about the gnucash-devel
mailing list