nodeviewedge: fixed float conversion warning

This commit is contained in:
itsmattkc
2020-02-26 01:59:46 +11:00
parent 7e7ff49777
commit e578ee6264
+1 -1
View File
@@ -122,7 +122,7 @@ void NodeViewEdge::SetHighlighted(bool e)
void NodeViewEdge::SetPoints(const QPointF &start, const QPointF &end)
{
QPainterPath path;
float half_x = lerp(start.x(), end.x(), 0.5f);
double half_x = lerp(start.x(), end.x(), 0.5);
path.moveTo(start);
path.cubicTo(QPointF(half_x, start.y()), QPointF(half_x, end.y()), end);
setPath(path);