summaryrefslogtreecommitdiffstats
path: root/share/extensions/svgcalendar.py
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-01-23 04:00:08 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-01-23 04:00:08 +0000
commit4c7c0f00a0ccda41b520429d39da153a5f85f59d (patch)
tree212a4ef90f85fe51d423a9e6f72c10749ee8517a /share/extensions/svgcalendar.py
parentadd calendar to makefile; move some extensions to Render where they make more... (diff)
downloadinkscape-4c7c0f00a0ccda41b520429d39da153a5f85f59d.tar.gz
inkscape-4c7c0f00a0ccda41b520429d39da153a5f85f59d.zip
fix the fill-end-of-month option
(bzr r7161)
Diffstat (limited to 'share/extensions/svgcalendar.py')
-rwxr-xr-xshare/extensions/svgcalendar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/extensions/svgcalendar.py b/share/extensions/svgcalendar.py
index dba73ed11..7410d3079 100755
--- a/share/extensions/svgcalendar.py
+++ b/share/extensions/svgcalendar.py
@@ -252,7 +252,9 @@ class SVGCalendar (inkex.Effect):
txt_atts = {'style': simplestyle.formatStyle(style),
'x': str( self.day_w * week_x ),
'y': str( self.day_h * (week_y+2) ) }
- if day==0:
+ if day==0 and not self.options.fill_edb:
+ pass # draw nothing
+ elif day==0:
if before:
inkex.etree.SubElement(gdays, 'text', txt_atts).text = str( before_month[-bmd] )
bmd -= 1