diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2021-08-17 13:50:50 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2021-08-26 13:50:24 +0200 |
commit | bcb71d3f7bf9be6ae1bd65f486a3e08edccac0ad (patch) | |
tree | b50dc562eab13d5ef0f646cd77b9ccba4612d082 /src/widgets/graphicsview/qgraphicsproxywidget.cpp | |
parent | fe13695644c3af79979d753fc5fe4d7e45d10a27 (diff) | |
download | qtbase-bcb71d3f7bf9be6ae1bd65f486a3e08edccac0ad.tar.gz |
QDashStroker: cap the number of repetitions of the pattern
Since the dashing is computed even outside the clipping and device
area, painting very long dashed lines could consume unexpected amounts
of time and resources. Fix by placing a limit on the dashing, and fall
back to solid line drawing if hit.
Fixes: QTBUG-95594
Change-Id: Ida05ecd8fe6df402c9e669206fd5cec4a9f5386a
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit 279a434c1c8689f00b1ab8ed571f8732a803a7eb)
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsproxywidget.cpp')
0 files changed, 0 insertions, 0 deletions