diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-01-31 14:07:05 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-31 14:07:05 +0000 |
| commit | 7025330d167ff5afb43eefdd05ff0148430a9d8e (patch) | |
| tree | e811d4ea03ecdce24e0677ba56245a359b1da45f /src/widgets/gradient-toolbar.cpp | |
| parent | Convert pen/pencil toolbar to use ink-select-one-action. (diff) | |
| download | inkscape-7025330d167ff5afb43eefdd05ff0148430a9d8e.tar.gz inkscape-7025330d167ff5afb43eefdd05ff0148430a9d8e.zip | |
Fix setting active button (SP_GRADIENT_TYPE_LINEAR != 0).
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
| -rw-r--r-- | src/widgets/gradient-toolbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp index d5cc3fd11..910142bfb 100644 --- a/src/widgets/gradient-toolbar.cpp +++ b/src/widgets/gradient-toolbar.cpp @@ -883,8 +883,8 @@ void sp_gradient_toolbox_prep(SPDesktop * desktop, GtkActionGroup* mainActions, act->use_radio( true ); act->use_group_label( true ); - gint mode = prefs->getInt("/tools/gradient/newgradient", SP_MESH_GEOMETRY_NORMAL); - act->set_active( mode ); + gint mode = prefs->getInt("/tools/gradient/newgradient", SP_GRADIENT_TYPE_LINEAR); + act->set_active( mode == SP_GRADIENT_TYPE_LINEAR ? 0 : 1 ); // linear == 1, radial == 2 gtk_action_group_add_action( mainActions, GTK_ACTION( act->gobj() )); g_object_set_data( data, "gradient_new_type_mode", act ); |
