From: buliabyak Date: Fri, 23 Jan 2009 04:00:08 +0000 (+0000) Subject: fix the fill-end-of-month option X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=29487a8c51798146d1e86d0cfdd0e9d04ac89a34;p=inkscape.git fix the fill-end-of-month option --- 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