summaryrefslogtreecommitdiffstats
path: root/src/widgets/paintbucket-toolbar.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-07-07 19:01:54 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-07-07 19:01:54 +0000
commit8744e466672f8dfc12ef60c9746b278d90f6dd89 (patch)
tree2e3bcd8672a9cc2a107f5038b3db58a5c4bca9fe /src/widgets/paintbucket-toolbar.cpp
parentSmall patch from su_v to make versioning appear on out-of-tree builds (diff)
downloadinkscape-8744e466672f8dfc12ef60c9746b278d90f6dd89.tar.gz
inkscape-8744e466672f8dfc12ef60c9746b278d90f6dd89.zip
Allow basic editing capabilites if share directory is missing
(bzr r13341.1.85)
Diffstat (limited to 'src/widgets/paintbucket-toolbar.cpp')
-rw-r--r--src/widgets/paintbucket-toolbar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/paintbucket-toolbar.cpp b/src/widgets/paintbucket-toolbar.cpp
index e20811de8..8ddaccf64 100644
--- a/src/widgets/paintbucket-toolbar.cpp
+++ b/src/widgets/paintbucket-toolbar.cpp
@@ -83,6 +83,8 @@ static void paintbucket_offset_changed(GtkAdjustment *adj, GObject *tbl)
// 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)gtk_adjustment_get_value(adj));
+
+ g_return_if_fail(unit != NULL);
prefs->setString("/tools/paintbucket/offsetunits", unit->abbr);
}