diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-27 17:11:30 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-27 17:11:30 +0000 |
commit | 25fa78c2ffe3e98231cfb22f4005452da85b201c (patch) | |
tree | fead65e8733d8eff08cccb9ca2d45079fd632691 /chrome/views/label.cc | |
parent | 983f0fc8b363a04572ae5127dab837ab3e1390ef (diff) | |
download | chromium_src-25fa78c2ffe3e98231cfb22f4005452da85b201c.zip chromium_src-25fa78c2ffe3e98231cfb22f4005452da85b201c.tar.gz chromium_src-25fa78c2ffe3e98231cfb22f4005452da85b201c.tar.bz2 |
Fix linux build breakage.
Review URL: http://codereview.chromium.org/19020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/label.cc')
-rw-r--r-- | chrome/views/label.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/views/label.cc b/chrome/views/label.cc index 46989fb..ad9c54c 100644 --- a/chrome/views/label.cc +++ b/chrome/views/label.cc @@ -346,6 +346,9 @@ gfx::Rect Label::GetTextBounds() { case ALIGN_RIGHT: text_x = width() - insets.right() - text_size.width(); break; + default: + text_x = 0; + break; } return gfx::Rect(text_x, text_y, text_size.width(), text_size.height()); } |