diff options
| author | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-29 10:35:19 +0000 |
|---|---|---|
| committer | Tomasz Boczkowski <penginsbacon@gmail.com> | 2014-05-29 10:35:19 +0000 |
| commit | 35100d54d146fd0fcf702abca02311b0ef95152f (patch) | |
| tree | 11caf4ca09200bd857f7992e039bba262e71518d /src/knot-holder-entity.cpp | |
| parent | SPPattern c++-sification: replaced function by methods pt3 (diff) | |
| download | inkscape-35100d54d146fd0fcf702abca02311b0ef95152f.tar.gz inkscape-35100d54d146fd0fcf702abca02311b0ef95152f.zip | |
SPPattern c++-sification: class fields are private
(bzr r13341.6.23)
Diffstat (limited to '')
| -rw-r--r-- | src/knot-holder-entity.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/knot-holder-entity.cpp b/src/knot-holder-entity.cpp index 7b79d86a8..c3e48cf49 100644 --- a/src/knot-holder-entity.cpp +++ b/src/knot-holder-entity.cpp @@ -136,19 +136,19 @@ KnotHolderEntity::snap_knot_position_constrained(Geom::Point const &p, Inkscape: static gdouble sp_pattern_extract_theta(SPPattern const *pat) { - Geom::Affine transf = pat->patternTransform; + Geom::Affine transf = pat->get_transform(); return Geom::atan2(transf.xAxis()); } static Geom::Point sp_pattern_extract_scale(SPPattern const *pat) { - Geom::Affine transf = pat->patternTransform; + Geom::Affine transf = pat->get_transform(); return Geom::Point( transf.expansionX(), transf.expansionY() ); } static Geom::Point sp_pattern_extract_trans(SPPattern const *pat) { - return Geom::Point(pat->patternTransform[4], pat->patternTransform[5]); + return Geom::Point(pat->get_transform()[4], pat->get_transform()[5]); } void @@ -266,7 +266,7 @@ PatternKnotHolderEntityScale::knot_get() const gdouble x = pat->get_width(); gdouble y = pat->get_height(); Geom::Point delta = Geom::Point(x,y); - Geom::Affine a = pat->patternTransform; + Geom::Affine a = pat->get_transform(); a[4] = 0; a[5] = 0; delta = delta * a; |
