diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index 9a5c11cd1..9a94ae02b 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -911,15 +911,16 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): para_name = box_style.get_paragraph_style() shadow_width = box_style.get_shadow_space() - self.f.write('\n' % (float(y)+shadow_width)) - self.f.write('\n') + if box_style.get_shadow(): + self.f.write('\n' % (float(y)+shadow_width)) + self.f.write('\n') self.f.write('