summaryrefslogtreecommitdiffstats
path: root/src/arc-context.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2013-10-08 10:22:49 +0000
committertavmjong-free <tavmjong@free.fr>2013-10-08 10:22:49 +0000
commitf5d74fe46345673252807be3b6812bbb0469e457 (patch)
tree2dd29c409d36d5dbfbe008cfff774880fd310b3d /src/arc-context.cpp
parentcppcheck (diff)
downloadinkscape-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.cpp8
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];