From 02be6b99f1fc3e2f327dc2da7718ef37bf52e885 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 9 Jan 2004 03:16:48 +0000 Subject: [PATCH] * src/docgen/PSDrawDoc.py: Scaleable shadow * src/docgen/OpenOfficeDoc.py: Scaleable shadow * src/docgen/KwordDoc.py (KwordDoc.close): handle KWord mime type * src/grampslib_wrap.c: handle NULL pointers svn: r2614 --- gramps2/src/docgen/OpenOfficeDoc.py | 5 +++-- gramps2/src/docgen/PSDrawDoc.py | 22 ++++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index 3718290a1..9a5c11cd1 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -909,6 +909,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): def draw_box(self,style,text,x,y): box_style = self.draw_styles[style] para_name = box_style.get_paragraph_style() + shadow_width = box_style.get_shadow_space() self.f.write('\n' % (float(y)+0.2)) + self.f.write('svg:x="%.3fcm" ' % (float(x)+shadow_width)) + self.f.write('svg:y="%.3fcm">\n' % (float(y)+shadow_width)) self.f.write('\n') self.f.write('