Code

fix the fill-end-of-month option
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 23 Jan 2009 04:00:08 +0000 (04:00 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 23 Jan 2009 04:00:08 +0000 (04:00 +0000)
share/extensions/svgcalendar.inx
share/extensions/svgcalendar.py

index 4fe45eed04eca4d1e110aa51b416518a83390ac2..7a33639a74c3718cc1c514da33194d9d48a84528 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">\r
-  <_name>Calendar Generator</_name>
+  <_name>Calendar</_name>
   <id>org.inkscape.calendar</id>\r
 
   <dependency type="executable" location="extensions">svgcalendar.py</dependency>
index dba73ed11be6ab60d1323f66bd7b3760db5b4bff..7410d3079afdfb151d73f0a162236ecd07a3b1fe 100755 (executable)
@@ -252,7 +252,9 @@ class SVGCalendar (inkex.Effect):
             txt_atts = {'style': simplestyle.formatStyle(style),\r
                         '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