diff options
| author | Josh Andler <scislac@gmail.com> | 2009-07-13 23:23:29 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2009-07-13 23:23:29 +0000 |
| commit | 36c9ea7b6474385530129ff5a5d52acfd1d032ff (patch) | |
| tree | 45a0e7c2281f0dbd4ff4d10a94f53a310800ea81 /src/widgets/toolbox.cpp | |
| parent | * [INTL:sk] Slovak translation update (diff) | |
| download | inkscape-36c9ea7b6474385530129ff5a5d52acfd1d032ff.tar.gz inkscape-36c9ea7b6474385530129ff5a5d52acfd1d032ff.zip | |
Fix width slider for Eraser Tool
(bzr r8277)
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 440a6283b..8bb15ae6f 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -5697,7 +5697,7 @@ static void sp_lpetool_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActi static void sp_erc_width_value_changed( GtkAdjustment *adj, GObject *tbl ) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - prefs->setDouble( "/tools/eraser/width", adj->value * 0.01 ); + prefs->setDouble( "/tools/eraser/width", adj->value ); update_presets_list(tbl); } @@ -5737,7 +5737,7 @@ static void sp_eraser_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActio GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "altx-eraser", 1, 100, 1.0, 10.0, labels, values, G_N_ELEMENTS(labels), - sp_erc_width_value_changed, 0.01, 0, 100 ); + sp_erc_width_value_changed, 1, 0); ege_adjustment_action_set_appearance( eact, TOOLBAR_SLIDER_HINT ); gtk_action_group_add_action( mainActions, GTK_ACTION(eact) ); gtk_action_set_sensitive( GTK_ACTION(eact), TRUE ); |
