summaryrefslogtreecommitdiffstats
path: root/src/snapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/snapper.h')
-rw-r--r--src/snapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/snapper.h b/src/snapper.h
index 110b3d36a..1801f309c 100644
--- a/src/snapper.h
+++ b/src/snapper.h
@@ -71,6 +71,7 @@ public:
public:
ConstraintLine(Geom::Point const &d) : _has_point(false), _direction(d) {}
ConstraintLine(Geom::Point const &p, Geom::Point const &d) : _has_point(true), _point(p), _direction(d) {}
+ ConstraintLine(Geom::Line const &l) : _has_point(true), _point(l.origin()), _direction(l.versor()) {}
bool hasPoint() const {
return _has_point;