From: handa Date: Tue, 21 Apr 2009 12:34:17 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=395296e1391d7bc2371cb07a08be8c139be310e8;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/MText.cs b/MText.cs index 3036d6b..defa5db 100644 --- a/MText.cs +++ b/MText.cs @@ -1342,7 +1342,7 @@ namespace M17N.Core Console.Write (")"); if (newline) Console.WriteLine (); - if (Length <= 0) + if (Length <= 0 || Length != LeftLength + (To - From) + RightLength) throw new Exception ("Invalid interval length"); } }