gardient check fixed

This commit is contained in:
Uwe Rathmann 2022-12-06 16:32:27 +01:00
parent 3bab38029d
commit 8551f4459d

View File

@ -677,7 +677,8 @@ bool QskBoxRenderer::isGradientSupported( const QskGradient& gradient )
if ( dir.isTilted() )
{
// only diagonal from topLeft to bottomRight
return ( dir.x1() == dir.x2() ) && ( dir.y1() == dir.y2() );
return ( dir.x1() == 0.0 ) && ( dir.y1() == 0.0 )
&& ( dir.x2() == 1.0 ) && ( dir.y2() == 1.0 );
}
return true;