diff options
-rw-r--r-- | ui/gfx/render_text_win.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc index 87fa314..b29c90c 100644 --- a/ui/gfx/render_text_win.cc +++ b/ui/gfx/render_text_win.cc @@ -455,6 +455,9 @@ void RenderTextWin::DrawVisualText(Canvas* canvas) { // Get the run specified by the visual-to-logical map. internal::TextRun* run = runs_[visual_to_logical_[i]]; + if (run->glyph_count == 0) + continue; + // Based on WebCore::skiaDrawText. pos.resize(run->glyph_count); SkScalar glyph_x = x; |