Commit 2c6e449a authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

qreal is double by default; adding f to numbers causes conversions

parent da7c1aff
......@@ -27,7 +27,7 @@ ColorSchemeWallpaper::ColorSchemeWallpaper(const QString &path, const ColorSchem
float x = _anchor.x(), y = _anchor.y();
if(x < 0 || x > 1.0f || y < 0 || y > 1.0f)
_anchor = QPointF(0.5f, 0.5f);
_anchor = QPointF(0.5, 0.5);
}
ColorSchemeWallpaper::~ColorSchemeWallpaper() = default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment