diff options
| author | Shlomi Fish <shlomif@shlomifish.org> | 2019-06-12 17:36:26 +0000 |
|---|---|---|
| committer | Shlomi Fish <shlomif@shlomifish.org> | 2019-06-12 17:36:26 +0000 |
| commit | 845d677a3bd7a39320e32b6c53fa70963a92ba87 (patch) | |
| tree | 0ddee54aa21e0e3122388b3e57fbb5602debacfd /src/extension/internal | |
| parent | Refactor: convert rotate_rel() to a method. (diff) | |
| download | inkscape-845d677a3bd7a39320e32b6c53fa70963a92ba87.tar.gz inkscape-845d677a3bd7a39320e32b6c53fa70963a92ba87.zip | |
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.
Diffstat (limited to 'src/extension/internal')
| -rw-r--r-- | src/extension/internal/bitmap/crop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extension/internal/bitmap/crop.cpp b/src/extension/internal/bitmap/crop.cpp index b83e7d882..69e23c770 100644 --- a/src/extension/internal/bitmap/crop.cpp +++ b/src/extension/internal/bitmap/crop.cpp @@ -38,7 +38,7 @@ Crop::postEffect(Magick::Image *image, SPItem *item) { Geom::Scale scale (0,0); scale = Geom::Scale(image->columns() / (double) image->baseColumns(), image->rows() / (double) image->baseRows()); - sp_item_scale_rel (item, scale); + item->scale_rel(scale); // Translate proportionaly to the image/bbox ratio Geom::OptRect bbox(item->desktopGeometricBounds()); @@ -47,7 +47,7 @@ Crop::postEffect(Magick::Image *image, SPItem *item) { Geom::Translate translate (0,0); translate = Geom::Translate(((_left - _right) / 2.0) * (bbox->dimensions()[Geom::X] / (double) image->columns()), ((_bottom - _top) / 2.0) * (bbox->dimensions()[Geom::Y] / (double) image->rows())); - sp_item_move_rel(item, translate); + item->move_rel(translate); } void |
