Index: chrome/renderer/render_view.cc |
=================================================================== |
--- chrome/renderer/render_view.cc (revision 5751) |
+++ chrome/renderer/render_view.cc (working copy) |
@@ -453,6 +453,7 @@ |
NOTREACHED(); |
pages = 0; |
} else { |
+ DCHECK_GT(printed_document_width_, 0); |
// Force to recalculate the height, otherwise it reuse the current window |
// height as the default. |
float effective_shrink = printed_document_width_ / paper_width; |