PrintRenderFrameHelper: Don't let fit to page scaling be undefined
If the preset options contain a zero width or height page size, computing the fit to page width or height will result in a division by zero and these values will be undefined. Use 0.0f, indicating an unknown/unavailable fit to page scaling, in this case. Bug: 859230 Change-Id: Ib5b36786da9ba82b1ba1642a5d9ff9c086342fee Reviewed-on: https://chromium-review.googlesource.com/1135785Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#575008}
Showing
Please register or sign in to comment