summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-lattice2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-lattice2.cpp')
-rw-r--r--src/live_effects/lpe-lattice2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/live_effects/lpe-lattice2.cpp b/src/live_effects/lpe-lattice2.cpp
index abd6e7786..8c7f46cbd 100644
--- a/src/live_effects/lpe-lattice2.cpp
+++ b/src/live_effects/lpe-lattice2.cpp
@@ -18,6 +18,8 @@
#include "live_effects/lpe-lattice2.h"
+#include <gtkmm/expander.h>
+
#include "sp-shape.h"
#include "sp-item.h"
#include "sp-path.h"
@@ -289,7 +291,7 @@ LPELattice2::vertical(PointParam &param_one, PointParam &param_two, Geom::Line v
double Y = (A[Geom::Y] + B[Geom::Y])/2;
A[Geom::Y] = Y;
B[Geom::Y] = Y;
- Geom::Point nearest = vert.pointAt(vert.nearestPoint(A));
+ Geom::Point nearest = vert.pointAt(vert.nearestTime(A));
double distance_one = Geom::distance(A,nearest);
double distance_two = Geom::distance(B,nearest);
double distance_middle = (distance_one + distance_two)/2;
@@ -310,7 +312,7 @@ LPELattice2::horizontal(PointParam &param_one, PointParam &param_two, Geom::Line
double X = (A[Geom::X] + B[Geom::X])/2;
A[Geom::X] = X;
B[Geom::X] = X;
- Geom::Point nearest = horiz.pointAt(horiz.nearestPoint(A));
+ Geom::Point nearest = horiz.pointAt(horiz.nearestTime(A));
double distance_one = Geom::distance(A,nearest);
double distance_two = Geom::distance(B,nearest);
double distance_middle = (distance_one + distance_two)/2;