diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 2b03ee2c..165c6a7f 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -2729,7 +2729,7 @@ pango_layout_get_caret_pos (PangoLayout *layout, return; hb_font_get_scale (hb_font, &x_scale, &y_scale); - slope_inv = (caret_run * y_scale) / (double) (caret_rise * x_scale); + slope_inv = (caret_run / (double) caret_rise) * (y_scale / (double) x_scale); if (strong_pos) { |