summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-05-21 22:52:20 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-05-21 22:52:20 +0000
commit14249966ae5027ccc0e6c4182255ce4abc0235e5 (patch)
tree92e365adfd0fc45554bfd65634a286427afa760a /src/widgets/toolbox.cpp
parentRemove flipping of y-axis from methods that get curves from selection in the ... (diff)
parentDon't adjust the shink/grow value because we're saving the units. (diff)
downloadinkscape-14249966ae5027ccc0e6c4182255ce4abc0235e5.tar.gz
inkscape-14249966ae5027ccc0e6c4182255ce4abc0235e5.zip
Merge fix for bug #781244 from Martin Owens - wrong conversion
of grow/shrink value for the paint bucket tool on startup (bzr r10217)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 8496ec0d0..0dcecfcb1 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -8377,7 +8377,9 @@ static void paintbucket_offset_changed(GtkAdjustment *adj, GObject *tbl)
SPUnit const *unit = tracker->getActiveUnit();
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- prefs->setDouble("/tools/paintbucket/offset", (gdouble)sp_units_get_pixels(adj->value, *unit));
+ // Don't adjust the offset value because we're saving the
+ // unit and it'll be correctly handled on load.
+ prefs->setDouble("/tools/paintbucket/offset", (gdouble)adj->value);
prefs->setString("/tools/paintbucket/offsetunits", sp_unit_get_abbreviation(unit));
}