summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2011-05-11 17:50:57 +0000
committerMartin Owens <doctormo@gmail.com>2011-05-11 17:50:57 +0000
commitbb2e451ada0bbd3a04dddd7732a44c83f135af04 (patch)
treecec5620a60f202561a106c56529784fb7baad2ac /src/widgets/toolbox.cpp
parentFix fallback to MRU locations. (diff)
downloadinkscape-bb2e451ada0bbd3a04dddd7732a44c83f135af04.tar.gz
inkscape-bb2e451ada0bbd3a04dddd7732a44c83f135af04.zip
Don't adjust the shink/grow value because we're saving the units.
Fixed bugs: - https://launchpad.net/bugs/781244 (bzr r10207.1.1)
Diffstat (limited to '')
-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));
}