diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-02-06 20:19:45 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-02-06 20:19:45 +0000 |
| commit | 4a4a2195d801bee49e9e1fb23cf6cef4b35f413e (patch) | |
| tree | 192ec0c1e68f0191a5f3710267f1e123627dbf26 /src/widgets | |
| parent | bug 189516: text selection highlight is in the wrong place for text-on-path w... (diff) | |
| download | inkscape-4a4a2195d801bee49e9e1fb23cf6cef4b35f413e.tar.gz inkscape-4a4a2195d801bee49e9e1fb23cf6cef4b35f413e.zip | |
fix 189661
(bzr r4669)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/toolbox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index fcf437288..eb4b404e8 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -5280,7 +5280,9 @@ static void sp_paintbucket_toolbox_prep(SPDesktop *desktop, GtkActionGroup* main // Create the units menu. UnitTracker* tracker = new UnitTracker( SP_UNIT_ABSOLUTE | SP_UNIT_DEVICE ); - tracker->setActiveUnit(sp_unit_get_by_abbreviation(prefs_get_string_attribute("tools.paintbucket", "offsetunits"))); + const gchar *stored_unit = prefs_get_string_attribute("tools.paintbucket", "offsetunits"); + if (stored_unit) + tracker->setActiveUnit(sp_unit_get_by_abbreviation(stored_unit)); g_object_set_data( holder, "tracker", tracker ); { GtkAction* act = tracker->createAction( "PaintbucketUnitsAction", _("Units"), ("") ); |
