summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/views/omnibox/omnibox_view_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index 6a00d16..070748f 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -485,7 +485,7 @@ OmniboxViewWin::OmniboxViewWin(AutocompleteEditController* controller,
// Get the metrics for the font.
base::win::ScopedGetDC screen_dc(NULL);
- base::win::ScopedSelectObject(screen_dc, font_.GetNativeFont());
+ base::win::ScopedSelectObject font_in_dc(screen_dc, font_.GetNativeFont());
TEXTMETRIC tm = {0};
GetTextMetrics(screen_dc, &tm);
int cap_height = font_.GetBaseline() - tm.tmInternalLeading;