From 6e822bf3984270ead48249714f2cd77747fc2383 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 12 Jan 2014 18:50:54 +0100 Subject: display current value in qfc correctly --- qfunctionconfigurator/qfunctionconfigurator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 6540e66f..b959b56c 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -232,7 +232,7 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e) // This new feature is very handy for tweaking the curves! // if (_config->getLastPoint( currentPoint )) { - actualPos = point_to_pixel( currentPoint ); + actualPos = point_to_pixel( QPointF(fabs(currentPoint.x()), fabs(currentPoint.y())) ); drawPoint(&p, actualPos, QColor(255, 0, 0, 120)); pen.setWidth(1); -- cgit v1.2.3