[text] account for scrolling in text selections

Account for any scrolling offset in single line mode when calculating the
area that should be selected.
This commit is contained in:
Thomas Wood 2009-05-14 10:55:25 +01:00
parent e79fd1055d
commit cf6c2d9721

View File

@ -962,6 +962,12 @@ cursor_paint (ClutterText *self)
range_x = ranges[i * 2]
/ PANGO_SCALE;
/* Account for any scrolling in single line mode */
if (priv->single_line_mode)
range_x += priv->text_x;
range_width = (ranges[i * 2 + 1] - ranges[i * 2])
/ PANGO_SCALE;