diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 03:10:54 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 03:10:54 +0000 |
commit | 98af60b92b1828945dca0c8cf384645a62682f6d (patch) | |
tree | ec29cd0eb4a7d3fe5f2d9940066bc268b01f2d08 /printing | |
parent | be44f2f511cd692192b2668d40c4226ab3b60ce7 (diff) | |
download | chromium_src-98af60b92b1828945dca0c8cf384645a62682f6d.zip chromium_src-98af60b92b1828945dca0c8cf384645a62682f6d.tar.gz chromium_src-98af60b92b1828945dca0c8cf384645a62682f6d.tar.bz2 |
Add check to debug issue 96063
BUG=96063
TEST=NONE
Review URL: http://codereview.chromium.org/8054031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/page_setup.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/printing/page_setup.cc b/printing/page_setup.cc index 9ac3e520..46431d8 100644 --- a/printing/page_setup.cc +++ b/printing/page_setup.cc @@ -119,6 +119,8 @@ void PageSetup::Init(const gfx::Size& physical_size, physical_size.height() - effective_margins_.bottom - content_area_.y())); + // TODO(vandebo) Remove once bug 96063 is resolved. + CHECK(content_area_.width() > 0 && content_area_.height() > 0); } void PageSetup::SetRequestedMargins(const PageMargins& requested_margins) { |