diff --git a/gnucash-2.2.9-crash.patch b/gnucash-2.2.9-crash.patch
new file mode 100644
index 0000000..ab6c886
--- /dev/null
+++ b/gnucash-2.2.9-crash.patch
@@ -0,0 +1,11 @@
+diff -up gnucash-2.2.9/src/gnome/glade/chart-export.glade.foo gnucash-2.2.9/src/gnome/glade/chart-export.glade
+--- gnucash-2.2.9/src/gnome/glade/chart-export.glade.foo 2010-01-18 13:31:23.000000000 -0500
++++ gnucash-2.2.9/src/gnome/glade/chart-export.glade 2008-01-07 20:06:30.000000000 -0500
+@@ -222,6 +222,7 @@
+ 215
+ 180
+ True
++ Future dates are not supported
+ True
+ GTK_CALENDAR_SHOW_HEADING|GTK_CALENDAR_SHOW_DAY_NAMES
+
diff --git a/gnucash.spec b/gnucash.spec
index 90fa2e5..89b8104 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -4,7 +4,7 @@ Name: gnucash
Summary: Finance management application
Version: 2.2.9
URL: http://gnucash.org/
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+
Group: Applications/Productivity
Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{version}.tar.lzma
@@ -17,6 +17,7 @@ BuildRequires: desktop-file-utils, texinfo
BuildRequires: gettext, slib >= 3a1-5, libtool, intltool
Patch0: gnucash-quiet.patch
Patch1: gnucash-2.3.7-label.patch
+Patch2: gnucash-2.2.9-crash.patch
Requires: gnucash-docs >= 2.2.0
Requires: slib >= 3a1-5
Requires: perl(Finance::Quote)
@@ -39,6 +40,7 @@ balanced books.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
find src/quotes -name "*.in" -exec sed -i "s|use lib '@-PERLINCL-@';||g" {} \;
%build
@@ -130,6 +132,9 @@ fi
%doc doc/README.german doc/README.francais doc/guile-hackers.txt
%changelog
+* Mon Jan 18 2010 Bill Nottingham
+- Fix crash on exporting account tree (#544454, #550362, #546597)
+
* Thu Dec 10 2009 Bill Nottingham
- Fix accelerators (#533019, #541915)