From 647a8ee62988aaaec5230be05acd20f5408dcb58 Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Sun, 28 Jul 2019 21:59:08 +1000 Subject: Fix Arc toolbar buttons (gitlab, inkscape#355) --- src/object/sp-ellipse.h | 4 ++-- src/ui/toolbar/arc-toolbar.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3