qt5base-lts/tests/auto/gui/painting
Eirik Aavitsland 01f090e9e4 Fix QColor::toCmyk() for rgb(0, 0, 0)
We translate all pure gray colors into cmyk having c,m,y=0 and only
the k value expressing the darkness. But a fix introduced to avoid
division by 0 caused rgb(0, 0, 0) to be an exception to this; it ended
up being translated as c,m,y,k=1 instead.

Fix by catching the potential div-by-0 situation earlier and directly
set the orthodox cmyk translation: c,m,y=0,k=1.

Fixes: QTBUG-73171
Change-Id: I3774eaf9d96e096ac5c47c55d28881bea2bd1309
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2019-02-05 22:47:33 +00:00
..
qbrush Give the QGradient presets ObjectMode coordinate mode by default 2018-07-24 16:45:53 +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 winrt: Fix tst_QPainterPath 2017-05-31 13:10:05 +00: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 tst_QRegion: compile under QT_DISABLE_DEPRECATED_BEFORE=0x051200 2017-12-07 19:10:09 +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