summaryrefslogtreecommitdiffstats
path: root/views/controls/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/label.cc')
-rw-r--r--views/controls/label.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc
index 6d979df..dcff7c8 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -437,7 +437,8 @@ void Label::CalculateDrawStringParams(std::wstring* paint_text,
*paint_text = UTF16ToWide(base::i18n::GetDisplayStringInLTRDirectionality(
WideToUTF16(*paint_text)));
} else if (elide_in_middle_) {
- *paint_text = gfx::ElideText(text_, font_, width(), true);
+ *paint_text = UTF16ToWideHack(gfx::ElideText(WideToUTF16Hack(text_),
+ font_, width(), true));
} else {
*paint_text = text_;
}