diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-26 22:31:12 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-26 22:31:12 +0000 |
| commit | bfb70c0a66051c665b8729916eceedb3cd7f51f8 (patch) | |
| tree | 3bc3e44d7b83526900175b5e86bbc1afeeab86f4 /src/sp-ellipse.cpp | |
| parent | Update to trunk (diff) | |
| parent | Added some consts. (diff) | |
| download | inkscape-bfb70c0a66051c665b8729916eceedb3cd7f51f8.tar.gz inkscape-bfb70c0a66051c665b8729916eceedb3cd7f51f8.zip | |
Update to trunk
(bzr r11950.1.190)
Diffstat (limited to 'src/sp-ellipse.cpp')
| -rw-r--r-- | src/sp-ellipse.cpp | 8 |
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 |
