summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/point.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-01 19:15:16 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-01 19:15:16 +0000
commita45a0820bec31c1611da0c8de6ecfec218d2419a (patch)
tree39a36f8323928a800aebc7266cce7e3bfadec308 /src/live_effects/parameter/point.cpp
parentreplace matrix division code. (diff)
downloadinkscape-a45a0820bec31c1611da0c8de6ecfec218d2419a.tar.gz
inkscape-a45a0820bec31c1611da0c8de6ecfec218d2419a.zip
2geomify a lot of NR::Points to Geom::Point
(bzr r6513)
Diffstat (limited to 'src/live_effects/parameter/point.cpp')
-rw-r--r--src/live_effects/parameter/point.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index 0cb57993e..0c7a701f1 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -138,8 +138,8 @@ public:
PointParamKnotHolderEntity(PointParam *p) { this->pparam = p; }
virtual ~PointParamKnotHolderEntity() {}
- virtual void knot_set(NR::Point const &p, NR::Point const &origin, guint state);
- virtual NR::Point knot_get();
+ virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
+ virtual Geom::Point knot_get();
virtual void knot_click(guint state);
private:
@@ -147,14 +147,14 @@ private:
};
void
-PointParamKnotHolderEntity::knot_set(NR::Point const &p, NR::Point const &/*origin*/, guint /*state*/)
+PointParamKnotHolderEntity::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint /*state*/)
{
- NR::Point const s = snap_knot_position(p);
- pparam->param_setValue(s.to_2geom());
+ Geom::Point const s = snap_knot_position(p);
+ pparam->param_setValue(s);
sp_lpe_item_update_patheffect(SP_LPE_ITEM(item), false, false);
}
-NR::Point
+Geom::Point
PointParamKnotHolderEntity::knot_get()
{
return *pparam;