From 29487a8c51798146d1e86d0cfdd0e9d04ac89a34 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 23 Jan 2009 04:00:08 +0000 Subject: [PATCH] fix the fill-end-of-month option --- share/extensions/svgcalendar.inx | 2 +- share/extensions/svgcalendar.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/share/extensions/svgcalendar.inx b/share/extensions/svgcalendar.inx index 4fe45eed0..7a33639a7 100644 --- a/share/extensions/svgcalendar.inx +++ b/share/extensions/svgcalendar.inx @@ -1,6 +1,6 @@ - <_name>Calendar Generator + <_name>Calendar org.inkscape.calendar svgcalendar.py 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 -- 2.30.2