summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-07-28 11:59:08 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-08-06 06:37:44 +0000
commit647a8ee62988aaaec5230be05acd20f5408dcb58 (patch)
tree435dcf1d3ac32ba0514c036bb001ed302b7d94cc /src
parentAdd pySerial to macOS app (diff)
downloadinkscape-647a8ee62988aaaec5230be05acd20f5408dcb58.tar.gz
inkscape-647a8ee62988aaaec5230be05acd20f5408dcb58.zip
Fix Arc toolbar buttons (gitlab, inkscape#355)
Diffstat (limited to 'src')
-rw-r--r--src/object/sp-ellipse.h4
-rw-r--r--src/ui/toolbar/arc-toolbar.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/object/sp-ellipse.h b/src/object/sp-ellipse.h
index 31fd5e1b9..5af18194e 100644
--- a/src/object/sp-ellipse.h
+++ b/src/object/sp-ellipse.h
@@ -33,8 +33,8 @@ enum GenericEllipseType {
enum GenericEllipseArcType {
SP_GENERIC_ELLIPSE_ARC_TYPE_SLICE, // Default
- SP_GENERIC_ELLIPSE_ARC_TYPE_CHORD,
- SP_GENERIC_ELLIPSE_ARC_TYPE_ARC
+ SP_GENERIC_ELLIPSE_ARC_TYPE_ARC,
+ SP_GENERIC_ELLIPSE_ARC_TYPE_CHORD
};
class SPGenericEllipse : public SPShape {
diff --git a/src/ui/toolbar/arc-toolbar.cpp b/src/ui/toolbar/arc-toolbar.cpp
index d25274474..97645d296 100644
--- a/src/ui/toolbar/arc-toolbar.cpp
+++ b/src/ui/toolbar/arc-toolbar.cpp
@@ -173,6 +173,10 @@ ArcToolbar::ArcToolbar(SPDesktop *desktop) :
chord_btn->set_icon_name(INKSCAPE_ICON("draw-ellipse-chord"));
_type_buttons.push_back(chord_btn);
+ slice_btn->set_group(type_group);
+ arc_btn->set_group(type_group);
+ chord_btn->set_group(type_group);
+
gint type = prefs->getInt("/tools/shapes/arc/arc_type", 0);
_type_buttons[type]->set_active();