summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-26 10:55:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-26 10:57:52 +0200
commitc648c6a6851c567fb461e7b82e3521459dbfd62d (patch)
treef48422d39284fe97f8140e2d8716840ffc279aa3 /qfunctionconfigurator/qfunctionconfigurator.cpp
parentff290993484e6708ec57fbc4c4d4eeaaae379c4f (diff)
qfc: last value is always positive or zero
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index d058f905..03d1ab57 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -175,7 +175,7 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e)
// This new feature is very handy for tweaking the curves!
QPointF last;
if (_config->getLastPoint(last)) {
- QPointF pixel_pos = point_to_pixel( QPointF(fabs(last.x()), fabs(last.y())) );
+ QPointF pixel_pos = point_to_pixel(last);
drawPoint(&p, pixel_pos, QColor(255, 0, 0, 120));
}
}