| Index: ui/views/controls/label.cc
|
| diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
|
| index 766452012697dfbbc3b33dd05e44a9f772c15488..43dafe649e284f35b120ab103e40be2ff39cb952 100644
|
| --- a/ui/views/controls/label.cc
|
| +++ b/ui/views/controls/label.cc
|
| @@ -496,7 +496,9 @@ std::vector<base::string16> Label::GetLinesForWidth(int width) const {
|
| // |width| can be 0 when getting the default text size, in that case
|
| // the ideal lines (i.e. broken at newline characters) are wanted.
|
| if (width <= 0) {
|
| - base::SplitString(render_text_->GetDisplayText(), '\n', &lines);
|
| + lines = base::SplitString(
|
| + render_text_->GetDisplayText(), base::string16(1, '\n'),
|
| + base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
|
| } else {
|
| gfx::ElideRectangleText(render_text_->GetDisplayText(), font_list(), width,
|
| std::numeric_limits<int>::max(),
|
|
|