diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-10-08 10:22:49 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-10-08 10:22:49 +0000 |
| commit | f5d74fe46345673252807be3b6812bbb0469e457 (patch) | |
| tree | 2dd29c409d36d5dbfbe008cfff774880fd310b3d /src/arc-context.cpp | |
| parent | cppcheck (diff) | |
| download | inkscape-f5d74fe46345673252807be3b6812bbb0469e457.tar.gz inkscape-f5d74fe46345673252807be3b6812bbb0469e457.zip | |
Seamlessly switch between SVG circle, ellipse, and path (arc) elements while using the Circle, Ellipse, and Arc tool.
(bzr r12670)
Diffstat (limited to 'src/arc-context.cpp')
| -rw-r--r-- | src/arc-context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arc-context.cpp b/src/arc-context.cpp index 046541b9b..dc869ce60 100644 --- a/src/arc-context.cpp +++ b/src/arc-context.cpp @@ -363,7 +363,7 @@ void SPArcContext::drag(Geom::Point pt, guint state) { // Set style sp_desktop_apply_style_tool(desktop, repr, "/tools/shapes/arc", false); - this->arc = SP_ARC(desktop->currentLayer()->appendChildRepr(repr)); + this->arc = SP_GENERICELLIPSE(desktop->currentLayer()->appendChildRepr(repr)); Inkscape::GC::release(repr); this->arc->transform = SP_ITEM(desktop->currentLayer())->i2doc_affine().inverse(); this->arc->updateRepr(); @@ -409,9 +409,9 @@ void SPArcContext::drag(Geom::Point pt, guint state) { } } - this->arc->sp_arc_position_set( - r.midpoint()[Geom::X], r.midpoint()[Geom::Y], - r.dimensions()[Geom::X] / 2, r.dimensions()[Geom::Y] / 2); + this->arc->position_set( + r.midpoint()[Geom::X], r.midpoint()[Geom::Y], + r.dimensions()[Geom::X] / 2, r.dimensions()[Geom::Y] / 2); double rdimx = r.dimensions()[Geom::X]; double rdimy = r.dimensions()[Geom::Y]; |
