summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-perspective_path.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-01-18 23:37:04 +0000
committerJabiertxo Arraiza Cenoz <jtx@jtx.marker.es>2013-01-18 23:37:04 +0000
commit686ddfefd34634a2d3ccacee4c5d243bbe47629f (patch)
treeec9fd88a0acc73cfadb5668becdc2dba7b98e50d /src/live_effects/lpe-perspective_path.cpp
parentDelete bspline node whith node tool and fix 1 segment continue shift error (diff)
parentSome Corrections (diff)
downloadinkscape-686ddfefd34634a2d3ccacee4c5d243bbe47629f.tar.gz
inkscape-686ddfefd34634a2d3ccacee4c5d243bbe47629f.zip
Merge from branch
(bzr r11950.1.18)
Diffstat (limited to 'src/live_effects/lpe-perspective_path.cpp')
-rw-r--r--src/live_effects/lpe-perspective_path.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp
index aeee77482..c255f8665 100644
--- a/src/live_effects/lpe-perspective_path.cpp
+++ b/src/live_effects/lpe-perspective_path.cpp
@@ -36,7 +36,7 @@ class KnotHolderEntityOffset : public LPEKnotHolderEntity
public:
KnotHolderEntityOffset(LPEPerspectivePath *effect) : LPEKnotHolderEntity(effect) {};
virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state);
- virtual Geom::Point knot_get();
+ virtual Geom::Point knot_get() const;
};
} // namespace PP
@@ -71,7 +71,7 @@ LPEPerspectivePath::~LPEPerspectivePath()
}
void
-LPEPerspectivePath::doBeforeEffect (SPLPEItem *lpeitem)
+LPEPerspectivePath::doBeforeEffect (SPLPEItem const* lpeitem)
{
original_bbox(lpeitem, true);
}
@@ -165,9 +165,9 @@ KnotHolderEntityOffset::knot_set(Geom::Point const &p, Geom::Point const &origin
}
Geom::Point
-KnotHolderEntityOffset::knot_get()
+KnotHolderEntityOffset::knot_get() const
{
- LPEPerspectivePath* lpe = dynamic_cast<LPEPerspectivePath *>(_effect);
+ LPEPerspectivePath const *lpe = dynamic_cast<LPEPerspectivePath const*>(_effect);
return lpe->orig + Geom::Point(lpe->offsetx, -lpe->offsety);
}