diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 18:39:52 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 18:39:52 +0000 |
commit | a1c0c1c5f5235694b6ff2b0b157fb57ab2f7bb1a (patch) | |
tree | 325ee7917fe7cccc6ee4fb8f33c00488b5dc1dba /app/gfx | |
parent | 6d5ae9219593ea2bfc56b70dad0b7c46f614da60 (diff) | |
download | chromium_src-a1c0c1c5f5235694b6ff2b0b157fb57ab2f7bb1a.zip chromium_src-a1c0c1c5f5235694b6ff2b0b157fb57ab2f7bb1a.tar.gz chromium_src-a1c0c1c5f5235694b6ff2b0b157fb57ab2f7bb1a.tar.bz2 |
Problem clipping gtk text.
BUG=26266i
TEST=NONE
Review URL: http://codereview.chromium.org/342060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx')
-rwxr-xr-x | app/gfx/canvas_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/gfx/canvas_linux.cc b/app/gfx/canvas_linux.cc index 223c1a9..df0bdf7 100755 --- a/app/gfx/canvas_linux.cc +++ b/app/gfx/canvas_linux.cc @@ -185,7 +185,7 @@ void Canvas::DrawStringInt(const std::wstring& text, int width, height; pango_layout_get_pixel_size(layout, &width, &height); - cairo_rectangle(cr, x, y, width, height); + cairo_rectangle(cr, x, y, w, h); cairo_clip(cr); if (flags & Canvas::TEXT_VALIGN_TOP) { |