From da5dbcb1f40c6d27e844e2c57c63e3e294c2c633 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 22 Feb 2009 20:53:37 +0000 Subject: [PATCH] Revert revision 10874 as it causes bug #2720 svn: r12082 --- src/BaseDoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BaseDoc.py b/src/BaseDoc.py index 0b8aae0ba..1ae9f0af3 100644 --- a/src/BaseDoc.py +++ b/src/BaseDoc.py @@ -5,6 +5,7 @@ # Copyright (C) 2002 Gary Shao # Copyright (C) 2007 Brian G. Matherly # Copyright (C) 2009 Benny Malengier +# Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1200,7 +1201,7 @@ class SheetParser(handler.ContentHandler): self.f.set_underline(int(attrs['underline'])) self.f.set_color(cnv2color(attrs['color'])) elif tag == "para": - if 'description' in attrs: + if attrs.has_key('description'): self.p.set_description(attrs['description']) self.p.set_right_margin(Utils.gfloat(attrs['rmargin'])) self.p.set_right_margin(Utils.gfloat(attrs['rmargin']))