diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-06-20 13:08:43 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-06-20 13:08:43 +0000 |
| commit | a6538efd22aae68fae6dca99748f13981e547922 (patch) | |
| tree | 6765cbf522a7ef884483dc8c8ed29117f8a9e9a3 /src/graphlayout.cpp | |
| parent | Remove unused code. (diff) | |
| parent | Refactoring: replace funcs with methods. (diff) | |
| download | inkscape-a6538efd22aae68fae6dca99748f13981e547922.tar.gz inkscape-a6538efd22aae68fae6dca99748f13981e547922.zip | |
Merge branch 'refactoring' of gitlab.com:shlomif/inkscape
Diffstat (limited to 'src/graphlayout.cpp')
| -rw-r--r-- | src/graphlayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphlayout.cpp b/src/graphlayout.cpp index 4c244489c..b04e5f703 100644 --- a/src/graphlayout.cpp +++ b/src/graphlayout.cpp @@ -76,7 +76,7 @@ struct CheckProgress: TestConvergence { Geom::Rect const item_box(sp_item_bbox_desktop(u)); Geom::Point const curr(item_box.midpoint()); Geom::Point const dest(r->getCentreX(),r->getCentreY()); - sp_item_move_rel(u, Geom::Translate(dest - curr)); + u->move_rel(Geom::Translate(dest - curr)); } } */ @@ -210,7 +210,7 @@ void graphlayout(std::vector<SPItem*> const & items) { if (item_box) { Geom::Point const curr(item_box->midpoint()); Geom::Point const dest(r->getCentreX(),r->getCentreY()); - sp_item_move_rel(item, Geom::Translate(dest - curr)); + item->move_rel(Geom::Translate(dest - curr)); } } } |
