summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-03-20 03:28:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-03-20 03:28:17 +0100
commitbac29155c895377d63646ad0819d25fc6139d6a5 (patch)
treedd2e6a93429875620a000b048155029a562f50ca /qfunctionconfigurator/qfunctionconfigurator.cpp
parentee673282e06f4a174fc6e64875710eb5c726a7ea (diff)
qfc: start drawing control point lines from correct place
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 b9728bd7..1c90cd6f 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -161,7 +161,7 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e)
QPen pen(Qt::white, 1, Qt::SolidLine);
QList<QPointF> points = _config->getPoints();
if (points.size() && moving_control_point_idx >= 0 && moving_control_point_idx < points.size()) {
- QPointF prev = points[0];
+ QPointF prev = point_to_pixel(points[0]);
for (int i = 1; i < points.size(); i++) {
auto tmp = point_to_pixel(points[i]);
drawLine(&p, prev, tmp, pen);