monochrome gradients are rendered vertically

This commit is contained in:
Uwe Rathmann 2022-12-24 12:22:42 +01:00
parent d9eacd9eb3
commit fba8b97a74

View File

@ -552,7 +552,7 @@ void QskBoxRenderer::renderRect( const QRectF& rect,
{ {
fillLineCount = gradient.stepCount() + 1; fillLineCount = gradient.stepCount() + 1;
if ( gradient.linearDirection().isTilted() ) if ( !gradient.isMonochrome() && gradient.linearDirection().isTilted() )
{ {
// extra lines for the corners // extra lines for the corners