diff options
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 5c7482530..837f0da0e 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -1298,8 +1298,8 @@ gboolean Inkscape::SelTrans::centerRequest(Geom::Point &pt, guint state) if (state & GDK_CONTROL_MASK) { // with Ctrl, constrain to axes std::vector<Inkscape::Snapper::SnapConstraint> constraints; - constraints.push_back(Inkscape::Snapper::SnapConstraint(_point, Geom::Point(1, 0))); - constraints.push_back(Inkscape::Snapper::SnapConstraint(_point, Geom::Point(0, 1))); + constraints.emplace_back(_point, Geom::Point(1, 0)); + constraints.emplace_back(_point, Geom::Point(0, 1)); Inkscape::SnappedPoint sp = m.multipleConstrainedSnaps(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_ROTATION_CENTER), constraints, state & GDK_SHIFT_MASK); pt = sp.getPoint(); } |
