summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-03-02 13:08:17 +0000
committertavmjong-free <tavmjong@free.fr>2017-03-02 13:08:17 +0000
commitc35eeadff685fb93343ee334ec6da857c95c8288 (patch)
tree0480364cfec63f8730f4f8394d52305ada65ff15 /src/ui
parentAdd units (px) to size being shown in native Windows file open dialog and fix... (diff)
downloadinkscape-c35eeadff685fb93343ee334ec6da857c95c8288.tar.gz
inkscape-c35eeadff685fb93343ee334ec6da857c95c8288.zip
Implement arc "chord" type. (Matches Krita "chord" arc type.)
(bzr r15561)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/object-edit.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/object-edit.cpp b/src/ui/object-edit.cpp
index cf2c03396..b11a61710 100644
--- a/src/ui/object-edit.cpp
+++ b/src/ui/object-edit.cpp
@@ -812,7 +812,9 @@ ArcKnotHolderEntityStart::knot_set(Geom::Point const &p, Geom::Point const &/*or
g_assert(arc != NULL);
gint side = sp_genericellipse_side(arc, p);
- if(side != 0) { arc->setClosed(side == -1); }
+ if(side != 0) { arc->setArcType( (side == -1) ?
+ SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE :
+ SP_GENERIC_ELLIPSE_ARC_TYPE_ARC); }
Geom::Point delta = p - Geom::Point(arc->cx.computed, arc->cy.computed);
Geom::Scale sc(arc->rx.computed, arc->ry.computed);
@@ -861,7 +863,9 @@ ArcKnotHolderEntityEnd::knot_set(Geom::Point const &p, Geom::Point const &/*orig
g_assert(arc != NULL);
gint side = sp_genericellipse_side(arc, p);
- if(side != 0) { arc->setClosed(side == -1); }
+ if(side != 0) { arc->setArcType( (side == -1) ?
+ SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE :
+ SP_GENERIC_ELLIPSE_ARC_TYPE_ARC); }
Geom::Point delta = p - Geom::Point(arc->cx.computed, arc->cy.computed);
Geom::Scale sc(arc->rx.computed, arc->ry.computed);