From 19634c8757dad99abb47d9b574bfe9d525f46f14 Mon Sep 17 00:00:00 2001 From: Anton Gorenko Date: Sun, 23 May 2010 20:28:44 +0600 Subject: [PATCH] fix a bug with incorrect cursor position --- basis/ui/text/pango/pango.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/ui/text/pango/pango.factor b/basis/ui/text/pango/pango.factor index b3aa858507..634242b692 100644 --- a/basis/ui/text/pango/pango.factor +++ b/basis/ui/text/pango/pango.factor @@ -69,7 +69,7 @@ SYMBOL: dpi : line-offset>x ( layout n -- x ) #! n is an index into the UTF8 encoding of the text [ drop first-line ] [ swap string>> >utf8-index ] 2bi - 0 0 [ pango_layout_line_index_to_x ] keep + f 0 [ pango_layout_line_index_to_x ] keep *int pango>float ; : x>line-offset ( layout x -- n )