summaryrefslogtreecommitdiffstats
path: root/src/sp-ellipse.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-10-26 22:00:51 +0000
committerMarkus Engel <markus.engel@tum.de>2013-10-26 22:00:51 +0000
commit73edade30f70b4c0ad94c9561b4e4ec0675465b0 (patch)
treede55f48e427afc5faf8fb97467a8f79b86820b0f /src/sp-ellipse.cpp
parentfix crash (diff)
downloadinkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.tar.gz
inkscape-73edade30f70b4c0ad94c9561b4e4ec0675465b0.zip
Added some consts.
(bzr r12729)
Diffstat (limited to 'src/sp-ellipse.cpp')
-rw-r--r--src/sp-ellipse.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index 8a0a8f233..4cf96e432 100644
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
@@ -362,7 +362,7 @@ Inkscape::XML::Node *SPGenericEllipse::write(Inkscape::XML::Document *xml_doc, I
return repr;
}
-const char *SPGenericEllipse::displayName()
+const char *SPGenericEllipse::displayName() const
{
switch ( type ) {
@@ -560,9 +560,11 @@ Geom::Affine SPGenericEllipse::set_transform(Geom::Affine const &xform)
return ret;
}
-void SPGenericEllipse::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs)
+void SPGenericEllipse::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const
{
- this->normalize();
+ // CPPIFY: is this call necessary?
+ const_cast<SPGenericEllipse*>(this)->normalize();
+
Geom::Affine const i2dt = this->i2dt_affine();
// Snap to the 4 quadrant points of the ellipse, but only if the arc