summaryrefslogtreecommitdiffstats
path: root/ui/views/painter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/painter.cc')
-rw-r--r--ui/views/painter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index 4275c54..99c537c 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -171,7 +171,7 @@ void Painter::PaintPainterAt(gfx::Canvas* canvas,
const gfx::Rect& rect) {
DCHECK(canvas && painter);
canvas->Save();
- canvas->Translate(rect.origin());
+ canvas->Translate(rect.OffsetFromOrigin());
painter->Paint(canvas, rect.size());
canvas->Restore();
}