From 9841fb79efd2e2d8125bec72fe8088bcb34cdf7d Mon Sep 17 00:00:00 2001 From: "Craig J. Anderson" Date: Mon, 18 Jun 2012 20:35:05 +0000 Subject: [PATCH] Error 5851 (part 2) svn: r19868 --- src/plugins/lib/libcairodoc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/lib/libcairodoc.py b/src/plugins/lib/libcairodoc.py index 3e3b7529e..6abe6700f 100644 --- a/src/plugins/lib/libcairodoc.py +++ b/src/plugins/lib/libcairodoc.py @@ -1573,9 +1573,10 @@ links (like ODF) and write PDF from that format. # horizontal position of the text is not included in the style, # we assume that it is the size of the shadow, or 0.2mm - x_offset = style.get_shadow_space() - if x_offset == 0: - x_offset = 0.2 + if style.get_shadow(): + x_offset = style.get_shadow_space() + else: + x_offset = 0.2 new_text = GtkDocText(paragraph_style, 'center', self.__markup(text),