diff options
Diffstat (limited to 'ui/gfx/render_text.cc')
-rw-r--r-- | ui/gfx/render_text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc index ec2b24e..503fffc 100644 --- a/ui/gfx/render_text.cc +++ b/ui/gfx/render_text.cc @@ -341,7 +341,7 @@ int RenderText::GetStringWidth() { void RenderText::Draw(Canvas* canvas) { // Clip the canvas to the text display area. - canvas->ClipRectInt(display_rect_); + canvas->ClipRect(display_rect_); // Draw the selection. std::vector<Rect> selection(GetSubstringBounds(GetSelectionStart(), |