diff options
Diffstat (limited to 'ui/gfx/render_text_pango.cc')
-rw-r--r-- | ui/gfx/render_text_pango.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gfx/render_text_pango.cc b/ui/gfx/render_text_pango.cc index f7a61b17..4bfdaa7 100644 --- a/ui/gfx/render_text_pango.cc +++ b/ui/gfx/render_text_pango.cc @@ -211,6 +211,7 @@ SelectionModel RenderTextPango::AdjacentWordSelectionModel( } Range RenderTextPango::GetGlyphBounds(size_t index) { + EnsureLayout(); PangoRectangle pos; pango_layout_index_to_pos(layout_, TextIndexToLayoutIndex(index), &pos); // TODO(derat): Support fractional ranges for subpixel positioning? |