@@ -414,15 +414,15 @@ void QgsVectorGradientColorRampV2Dialog::plotMouseMove( QPointF point )
414414 QColor newColor = mStopEditor ->selectedStop ().color ;
415415
416416 if ( mCurrentPlotColorComponent == 0 )
417- newColor = QColor::fromHslF ( qBound ( 0.0 , point.y (), 1.0 ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
417+ newColor = QColor::fromHslF ( qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.hslSaturationF (), newColor.lightnessF (), newColor.alphaF () );
418418 else if ( mCurrentPlotColorComponent == 1 )
419- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.alphaF () );
419+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.alphaF () );
420420 else if ( mCurrentPlotColorComponent == 2 )
421- newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( 0.0 , point.y (), 1.0 ), newColor.lightnessF (), newColor.alphaF () );
421+ newColor = QColor::fromHslF ( newColor.hslHueF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ), newColor.lightnessF (), newColor.alphaF () );
422422 else if ( mCurrentPlotColorComponent == 3 )
423- newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( 0.0 , point.y (), 1.0 ) );
423+ newColor = QColor::fromHslF ( newColor.hslHueF (), newColor.hslSaturationF (), newColor.lightnessF (), qBound ( qreal ( 0.0 ) , point.y (), qreal ( 1.0 ) ) );
424424
425- mStopEditor ->setSelectedStopDetails ( newColor, qBound ( 0.0 , point.x (), 1.0 ) );
425+ mStopEditor ->setSelectedStopDetails ( newColor, qBound ( qreal ( 0.0 ) , point.x (), qreal ( 1.0 ) ) );
426426}
427427
428428bool byX ( QPointF p1, QPointF p2 )
0 commit comments