diff options
author | Andy Shaw <andy.shaw@digia.com> | 2014-06-05 23:23:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-09 12:35:02 +0200 |
commit | 9a3a3b641a11022a69d77840714da13d8c5c4d5e (patch) | |
tree | 3ab2951cf0428a1d19e7dcdcfe5131e62e0dd4e6 /src/widgets/widgets/qstackedwidget.cpp | |
parent | d6525a6c1011bfec337d9403ab8cb5724dc8fdfb (diff) |
Don't try to draw if there are no points in the path
In some cases, for instance if drawEllipse() was called with a null QRect
then it would still try to draw a QVectorPath without having enough points
in the list. Therefore the point_count should be checked first before
doing any drawing.
Change-Id: I9b8dbb87c73b74e9df9eb10ec790a484d05d4c46
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/widgets/widgets/qstackedwidget.cpp')
0 files changed, 0 insertions, 0 deletions