From df9649abf8248d750b9777c8ede0d9dee2bf239e Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 17 Nov 1996 23:42:55 +0000 Subject: [PATCH] lilypond-0.0.10 --- hdr/boxes.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hdr/boxes.hh b/hdr/boxes.hh index 15beb8c372..e3ea69a3bf 100644 --- a/hdr/boxes.hh +++ b/hdr/boxes.hh @@ -42,7 +42,15 @@ struct Interval { min += t; max += t; } - + Real operator[](int j) { + if (j==-1) + return min; + else if (j==1) + return max; + else + assert(false); + + } void unite(Interval h) { if (h.min