From 845d677a3bd7a39320e32b6c53fa70963a92ba87 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 12 Jun 2019 20:36:26 +0300 Subject: Refactoring: replace funcs with methods. I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of: - The CC0 / Public Domain - https://creativecommons.org/choose/zero/ . - The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License - The default licence of your project - The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher - The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher - Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses - The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later - The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later - The https://en.wikipedia.org/wiki/ISC_license - The https://opensource.org/licenses/BSD-2-Clause Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission. --- src/removeoverlap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/removeoverlap.cpp') diff --git a/src/removeoverlap.cpp b/src/removeoverlap.cpp index b9e13bfa4..8b3064bd9 100644 --- a/src/removeoverlap.cpp +++ b/src/removeoverlap.cpp @@ -79,7 +79,7 @@ void removeoverlap(std::vector const & items, double const xGap, double for (Record & rec: records) { Geom::Point const curr = rec.midpoint; Geom::Point const dest(rec.vspc_rect->getCentreX(), rec.vspc_rect->getCentreY()); - sp_item_move_rel(rec.item, Geom::Translate(dest - curr)); + rec.item->move_rel(Geom::Translate(dest - curr)); delete rec.vspc_rect; } } -- cgit v1.2.3