summaryrefslogtreecommitdiffstats
path: root/chrome/views/checkbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/checkbox.cc')
-rw-r--r--chrome/views/checkbox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/checkbox.cc b/chrome/views/checkbox.cc
index 56ac361..f9df22c2 100644
--- a/chrome/views/checkbox.cc
+++ b/chrome/views/checkbox.cc
@@ -166,10 +166,10 @@ void CheckBox::HighlightButton(bool f) {
}
bool CheckBox::LabelHitTest(const MouseEvent& event) {
- CPoint p(event.GetLocation());
+ CPoint p(event.GetX(), event.GetY());
gfx::Rect r;
ComputeTextRect(&r);
- return r.Contains(event.GetLocation().x, event.GetLocation().y);
+ return r.Contains(event.GetX(), event.GetY());
}
void CheckBox::OnMouseEntered(const MouseEvent& event) {