User Information:
===================

I was saving a graphical report to PDF file. Application didn't close and all was ok in PDF.


Error Details:
===================

137959: ERROR: gramps.py : line 148: Unhandled exception
Traceback (most recent call last):
File "/usr/local/share/gramps/ReportBase/_ReportDialog.py", line 639, in on_ok_clicked
self.options.handler.save_options()
File "/usr/local/share/gramps/PluginUtils/_Options.py", line 379, in save_options
self.option_list_collection.save()
File "/usr/local/share/gramps/PluginUtils/_Options.py", line 195, in save
self.write_common(f)
File "/usr/local/share/gramps/ReportBase/_ReportOptions.py", line 255, in write_common
f.write(' <orientation value="%d"/>\n' % escxml(self.get_last_orientation()) )
File "/usr/local/share/gramps/ReportBase/_ReportOptions.py", line 37, in escxml
return escape(d, { '"' : '&quot;' } )
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxutils.py", line 31, in escape
data = data.replace("&", "&amp;")
AttributeError: 'int' object has no attribute 'replace'


System Information:
===================

Python version: 2.5 (r25:51908, Jan 18 2007, 17:08:52) [GCC 4.1.2 20061215 (prerelease)]
BSDDB version: 4.4.5
Gramps version: 2.2.5-1
LANG: pl_PL
OS: ArchLinux, I compiled Gramps if it does matter.
Distribution: 2.6.19-beyond