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-star.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-star.cpp')
| -rw-r--r-- | src/sp-star.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-star.cpp b/src/sp-star.cpp index e634eccac..da10eeaa3 100644 --- a/src/sp-star.cpp +++ b/src/sp-star.cpp @@ -251,13 +251,13 @@ void SPStar::update_patheffect(bool write) { this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } -const char* SPStar::displayName() { +const char* SPStar::displayName() const { if (this->flatsided == false) return _("Star"); return _("Polygon"); } -gchar* SPStar::description() { +gchar* SPStar::description() const { // while there will never be less than 3 vertices, we still need to // make calls to ngettext because the pluralization may be different // for various numbers >=3. The singular form is used as the index. @@ -498,7 +498,7 @@ sp_star_position_set (SPStar *star, gint sides, Geom::Point center, gdouble r1, star->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } -void SPStar::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) { +void SPStar::snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const { // We will determine the star's midpoint ourselves, instead of trusting on the base class // Therefore snapping to object midpoints is temporarily disabled Inkscape::SnapPreferences local_snapprefs = *snapprefs; |
