]> gitweb.factorcode.org Git - factor.git/commitdiff
fix a bug with incorrect cursor position
authorAnton Gorenko <ex.rzrjck@gmail.com>
Sun, 23 May 2010 14:28:44 +0000 (20:28 +0600)
committerAnton Gorenko <ex.rzrjck@gmail.com>
Sun, 23 May 2010 14:28:44 +0000 (20:28 +0600)
basis/ui/text/pango/pango.factor

index b3aa85850705556608f60de4451def4bf20dc885..634242b692af14c3f17dae6835bf4006be4527e1 100644 (file)
@@ -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 <int> [ pango_layout_line_index_to_x ] keep
+    f 0 <int> [ pango_layout_line_index_to_x ] keep
     *int pango>float ;
 
 : x>line-offset ( layout x -- n )