summaryrefslogtreecommitdiffstats
path: root/src/knot-holder-entity.cpp
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 19:57:33 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 19:57:33 +0000
commit22db6068f172d060429f17a489bdce59e5836c69 (patch)
tree4640eaae672933789ec41ec10dca546c7b28382d /src/knot-holder-entity.cpp
parentSPPattern c++-sification: replaced GSList by std::list (diff)
downloadinkscape-22db6068f172d060429f17a489bdce59e5836c69.tar.gz
inkscape-22db6068f172d060429f17a489bdce59e5836c69.zip
SPPattern c++-sification: replacing pattern_ functions by methods pt1
(bzr r13341.6.19)
Diffstat (limited to '')
-rw-r--r--src/knot-holder-entity.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/knot-holder-entity.cpp b/src/knot-holder-entity.cpp
index 6471124ec..7b79d86a8 100644
--- a/src/knot-holder-entity.cpp
+++ b/src/knot-holder-entity.cpp
@@ -187,7 +187,7 @@ PatternKnotHolderEntityAngle::knot_get() const
{
SPPattern const *pat = SP_PATTERN(SP_STYLE_FILL_SERVER(SP_OBJECT(item)->style));
- gdouble x = pattern_width(pat);
+ gdouble x = pat->get_width();
gdouble y = 0;
Geom::Point delta = Geom::Point(x,y);
Geom::Point scale = sp_pattern_extract_scale(pat);
@@ -236,8 +236,8 @@ PatternKnotHolderEntityScale::knot_set(Geom::Point const &p, Geom::Point const &
// Get the new scale from the position of the knotholder
Geom::Point d = p_snapped - sp_pattern_extract_trans(pat);
- gdouble pat_x = pattern_width(pat);
- gdouble pat_y = pattern_height(pat);
+ gdouble pat_x = pat->get_width();
+ gdouble pat_y = pat->get_height();
Geom::Scale scl(1);
if ( state & GDK_CONTROL_MASK ) {
// if ctrl is pressed: use 1:1 scaling
@@ -263,8 +263,8 @@ PatternKnotHolderEntityScale::knot_get() const
{
SPPattern const *pat = SP_PATTERN(SP_STYLE_FILL_SERVER(SP_OBJECT(item)->style));
- gdouble x = pattern_width(pat);
- gdouble y = pattern_height(pat);
+ gdouble x = pat->get_width();
+ gdouble y = pat->get_height();
Geom::Point delta = Geom::Point(x,y);
Geom::Affine a = pat->patternTransform;
a[4] = 0;