From 78455c91b09616e2ff6713adbd6d44463a80608b Mon Sep 17 00:00:00 2001 From: Jes Date: Thu, 14 Jan 2010 19:01:07 +0100 Subject: Mise à jour de l'éditeur MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-editor/FontFile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script-editor/FontFile.cs') diff --git a/script-editor/FontFile.cs b/script-editor/FontFile.cs index 8bbf61e..cc74763 100644 --- a/script-editor/FontFile.cs +++ b/script-editor/FontFile.cs @@ -61,7 +61,7 @@ namespace VPScriptEditor case "Text": if (attrs[i].Value.Length != 1) - throw new Exception("Invalid database"); + throw new Exception("Invalid database, character " + attrs[i].Value + " not supported"); text = attrs[i].Value[0]; break; @@ -79,8 +79,8 @@ namespace VPScriptEditor XmlDocument fontXml = new XmlDocument(); fontXml.Load(file); XmlNodeList fontNode = fontXml.GetElementsByTagName("Symbol"); - glyphs = new Symbol[fontNode.Count + 1]; - bitmaps = new Bitmap[fontNode.Count + 1]; + glyphs = new Symbol[fontNode.Count]; + bitmaps = new Bitmap[fontNode.Count]; data = new Dictionary(); for (int i = 0; i < fontNode.Count; i++) { -- cgit v1.2.3