From: Stefano Zacchiroli Date: Thu, 1 Jun 2006 09:32:12 +0000 (+0000) Subject: bugfix: rely on byte count instead of mixing byte and character count X-Git-Tag: 0.4.95@7852~1371 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=834f4ec558838456604312b605bdce3a5d099403;p=helm.git bugfix: rely on byte count instead of mixing byte and character count --- diff --git a/matita/gtkmathview.matita.conf.xml.in b/matita/gtkmathview.matita.conf.xml.in index 704ca13ef..5935eaafc 100644 --- a/matita/gtkmathview.matita.conf.xml.in +++ b/matita/gtkmathview.matita.conf.xml.in @@ -14,4 +14,18 @@ --> + diff --git a/matita/matitaGui.ml b/matita/matitaGui.ml index 1f170cb91..b1b2a6ad3 100644 --- a/matita/matitaGui.ml +++ b/matita/matitaGui.ml @@ -903,7 +903,7 @@ class gui () = source_buffer#insert ~iter:(source_buffer#get_iter_at_mark `INSERT) s in let get_ligature word = - let len = MatitaGtkMisc.utf8_string_length word in + let len = String.length word in let aux_tex () = try for i = len - 1 downto 0 do