summaryrefslogtreecommitdiff
path: root/src/webenginequick/api/qquickwebenginescriptcollection.cpp
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-02-07 15:42:06 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2022-02-08 15:36:02 +0100
commit4f7b7995552b0220a9e431266e0119cd03a233cf (patch)
treeb27ffbb7f4ef063f72a7eeea9d9611aafb41d7e1 /src/webenginequick/api/qquickwebenginescriptcollection.cpp
parentdfa58067e31e77e20f0cd25f408e248c8ff82cf4 (diff)
downloadqtwebengine-4f7b7995552b0220a9e431266e0119cd03a233cf.tar.gz
QQuickPdfSelection: Fix division by zero
QQuickPdfSelection::m_renderScale is used for division in QQuickPdfSelection::updateResults(). Add warning message to setRenderScale() and ignore the new value if it is zero. Also avoid setting PdfSelection.renderScale to zero in PdfScrollablePageView. The division caused an assert: ASSERT: "divisor < 0 || divisor > 0" in file qtbase/src/corelib/tools/qpoint.h, line 299 It was reproducible with the pdfviewer quick example. Pick-to: 6.3 6.2 Change-Id: I31e08a9a28392fcc132470c8d94af1307447565a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/webenginequick/api/qquickwebenginescriptcollection.cpp')
0 files changed, 0 insertions, 0 deletions