chiark / gitweb /
Last week of Epiphany is also a special case
authorThomas Thurman <tthurman@gnome.org>
Tue, 26 Oct 2010 06:12:13 +0000 (02:12 -0400)
committerThomas Thurman <tthurman@gnome.org>
Tue, 26 Oct 2010 06:12:13 +0000 (02:12 -0400)
breviary/calendar.c

index fa9617b..e7f2dcf 100644 (file)
@@ -355,6 +355,17 @@ breviary_ensure_initialised (Breviary *breviary)
 
       breviary->facets[2] += 990;
     }
+  else if (target_serial >= easter_serial-49 &&
+          target_serial <= easter_serial-47)
+    {
+      /*
+       * The last week of Epiphany is coded
+       * similarly.
+       */
+      breviary->facets[2] =
+       (breviary->facets[2] / 1000)*1000 +
+       990;
+    }
   else
     {
       breviary->facets[2] += 10 *