From 834f4ec558838456604312b605bdce3a5d099403 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 1 Jun 2006 09:32:12 +0000 Subject: [PATCH] bugfix: rely on byte count instead of mixing byte and character count --- matita/gtkmathview.matita.conf.xml.in | 14 ++++++++++++++ matita/matitaGui.ml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.39.2