From bca2a86168c2edd464f3d5ad5651ddd9037376f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 3 Jan 2009 19:20:08 -0800 Subject: [PATCH] Fix #1543 (Problem converting ODT to LRF) --- src/odf/odf2xhtml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/odf/odf2xhtml.py b/src/odf/odf2xhtml.py index 229b93050e..8a55fbd036 100644 --- a/src/odf/odf2xhtml.py +++ b/src/odf/odf2xhtml.py @@ -766,6 +766,8 @@ class ODF2XHTML(handler.ContentHandler): """ Copy all attributes to a struct. We will later convert them to CSS2 """ + if self.currentstyle is None: + return for key,attr in attrs.items(): self.styledict[self.currentstyle][key] = attr