Fix the selection behaviour around the 0th glyph
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 16 Dec 2008 15:53:57 +0000 (15:53 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 16 Dec 2008 15:53:57 +0000 (15:53 +0000)
commit6b782ce4e720f07bd678ce613b81987fde13ff38
tree5014919f5e3780060f5d43872413328cf1ccbd3c
parentba586b46b304bbe3fe17b12b057574b8b1e08e32
Fix the selection behaviour around the 0th glyph

After fixing the cursor position issues around the initial
glyph of the layout, the selection position needs fixing as
well.

The fix is similar: check if the position of the selection
is 0 and provide a fast path by setting the offset to 0.
clutter/clutter-text.c