summaryrefslogtreecommitdiffstats
path: root/src/arc-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/arc-context.cpp')
-rw-r--r--src/arc-context.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index 046541b9b..a14562a32 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,17 +409,17 @@ 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];
Inkscape::Util::Quantity rdimx_q = Inkscape::Util::Quantity(rdimx, "px");
Inkscape::Util::Quantity rdimy_q = Inkscape::Util::Quantity(rdimy, "px");
- GString *xs = g_string_new(rdimx_q.string(*desktop->namedview->doc_units).c_str());
- GString *ys = g_string_new(rdimy_q.string(*desktop->namedview->doc_units).c_str());
+ GString *xs = g_string_new(rdimx_q.string(desktop->namedview->doc_units).c_str());
+ GString *ys = g_string_new(rdimy_q.string(desktop->namedview->doc_units).c_str());
if (state & GDK_CONTROL_MASK) {
int ratio_x, ratio_y;