Index: ui/gfx/render_text_win.cc |
diff --git a/ui/gfx/render_text_win.cc b/ui/gfx/render_text_win.cc |
index 0b72ab68b4888b0aa100df9f411c98fe267a4d25..1e73d130f78f9debca0712a668e53eb3142d6e66 100644 |
--- a/ui/gfx/render_text_win.cc |
+++ b/ui/gfx/render_text_win.cc |
@@ -381,7 +381,7 @@ std::vector<Rect> RenderTextWin::GetSubstringBounds(const ui::Range& range) { |
rect.set_origin(ToViewPoint(rect.origin())); |
// Union this with the last rect if they're adjacent. |
if (!bounds.empty() && rect.SharesEdgeWith(bounds.back())) { |
- rect = rect.Union(bounds.back()); |
+ rect.Union(bounds.back()); |
bounds.pop_back(); |
} |
bounds.push_back(rect); |