Index: ui/gfx/render_text_linux.cc |
=================================================================== |
--- ui/gfx/render_text_linux.cc (revision 112221) |
+++ ui/gfx/render_text_linux.cc (working copy) |
@@ -284,6 +284,8 @@ |
} |
size_t RenderTextLinux::IndexOfAdjacentGrapheme(size_t index, bool next) { |
+ if (index > text().length()) |
+ return text().length(); |
xji
2011/12/01 20:19:15
Thanks for fixing this.
Without the fix, does Linu
Alexei Svitkine (slow)
2011/12/01 20:58:58
Yes and also fails intermittently in Utf16IndexToU
|
EnsureLayout(); |
return Utf16IndexOfAdjacentGrapheme(Utf16IndexToUtf8Index(index), next); |
} |