summaryrefslogtreecommitdiffstats
path: root/app/gfx/font_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/font_util.cc')
-rw-r--r--app/gfx/font_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/gfx/font_util.cc b/app/gfx/font_util.cc
index 61e1b52dd..1c3cfca 100644
--- a/app/gfx/font_util.cc
+++ b/app/gfx/font_util.cc
@@ -27,7 +27,7 @@ int GetLocalizedContentsHeightForFont(int row_resource_id,
double lines = 0;
base::StringToDouble(WideToUTF8(l10n_util::GetString(row_resource_id)),
&lines);
- int height = static_cast<int>(font.height() * lines);
+ int height = static_cast<int>(font.GetHeight() * lines);
DCHECK_GT(height, 0);
return height;
}