*** empty log message ***
authorhanda <handa>
Tue, 21 Apr 2009 12:34:17 +0000 (12:34 +0000)
committerhanda <handa>
Tue, 21 Apr 2009 12:34:17 +0000 (12:34 +0000)
MText.cs

index 3036d6b..defa5db 100644 (file)
--- 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");
          }
       }