qt5base-lts/tests/auto/gui/painting
Eirik Aavitsland 697910e5fb Fix assert in QPainterPath after clear()
The newly introduced clear() method left the path in an undefined
state: d_ptr allocated, but no elements. The elements vector is
otherwise never empty, since ensureData() inserts a dummy initial
moveTo element.

Fix by making sure that clear() leaves the path in the same state as
ensureData() (i.e. "empty" but not "null"), except possibly more
capacity allocated in the elements vector.

Fixes: QTBUG-76534
Change-Id: I7ad8b312913f5eb6e22023f5d2fd873e54b1e23c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2019-07-31 12:05:54 +02:00
..
qbrush Fix assert/crash when creating QBrush with null QGradient 2019-04-01 11:56:42 +00:00
qcolor Fix QColor::toCmyk() for rgb(0, 0, 0) 2019-02-05 22:47:33 +00:00
qpagelayout Updated license headers 2016-01-21 18:55:18 +00:00
qpagesize Updated license headers 2016-01-21 18:55:18 +00:00
qpaintengine Updated license headers 2016-01-21 18:55:18 +00:00
qpainter Avoid crash in blitting or fast draw when QPointF is too big 2018-12-11 18:32:53 +00:00
qpainterpath Fix assert in QPainterPath after clear() 2019-07-31 12:05:54 +02:00
qpainterpathstroker Updated license headers 2016-01-21 18:55:18 +00:00
qpathclipper Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qpdfwriter Copy stretch to multifont fontDef 2017-04-05 11:27:15 +00:00
qpen Updated license headers 2016-01-21 18:55:18 +00:00
qpolygon Add QPolygon::intersects() methods 2017-05-18 08:55:16 +00:00
qregion Add faster path for scaling QRegion with multiple regions 2019-02-13 05:12:05 +00:00
qtransform Fix QTransform::transposed() result having wrong transformation type 2018-06-06 08:59:20 +00:00
qwmatrix Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00