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: make_still_working~7267 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=c6dab1ca4a6c993d7fcbc6aa6a9f5cf432eee695;p=helm.git bugfix: rely on byte count instead of mixing byte and character count --- diff --git a/helm/software/matita/gtkmathview.matita.conf.xml.in b/helm/software/matita/gtkmathview.matita.conf.xml.in index 704ca13ef..5935eaafc 100644 --- a/helm/software/matita/gtkmathview.matita.conf.xml.in +++ b/helm/software/matita/gtkmathview.matita.conf.xml.in @@ -14,4 +14,18 @@ --> + diff --git a/helm/software/matita/matitaGui.ml b/helm/software/matita/matitaGui.ml index 1f170cb91..b1b2a6ad3 100644 --- a/helm/software/matita/matitaGui.ml +++ b/helm/software/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