aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-09-18 14:40:35 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-09-18 14:40:35 +0200
commit8ecdeab03f390703c89b45bbbcc08fa4d42c9735 (patch)
tree765ed637fd389fe2516d85f2a14d49f4d441d7a0
parentAdd base of what gnome integration could look like. (diff)
downloadcalp-8ecdeab03f390703c89b45bbbcc08fa4d42c9735.tar.gz
calp-8ecdeab03f390703c89b45bbbcc08fa4d42c9735.tar.xz
Add an assert.
-rw-r--r--module/calp/html/view/calendar/shared.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/calp/html/view/calendar/shared.scm b/module/calp/html/view/calendar/shared.scm
index fb5eace5..badea7b9 100644
--- a/module/calp/html/view/calendar/shared.scm
+++ b/module/calp/html/view/calendar/shared.scm
@@ -1,5 +1,6 @@
(define-module (calp html view calendar shared)
:use-module (calp util)
+ :use-module ((calp util exceptions) :select (assert))
:use-module (srfi srfi-1)
:use-module (vcomponent)
:use-module ((vcomponent datetime)
@@ -32,6 +33,8 @@
;; only find events which also overlaps the
;; smaller event.
+ (assert event-length-key)
+
;; @var{x} is how for left in the container we are.
(let inner ((x 0)
(tree (make-tree overlapping?