From c6dab1ca4a6c993d7fcbc6aa6a9f5cf432eee695 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 --- .../software/matita/gtkmathview.matita.conf.xml.in | 14 ++++++++++++++ helm/software/matita/matitaGui.ml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.39.2