diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-06-06 22:12:17 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-06-06 22:12:17 +0000 |
| commit | 51fa0f22f154223139c7a9983819417ace5be3bb (patch) | |
| tree | bd4dae9aa5e60467acd415f0ae9a15f476ec2f96 /src/desktop-style.cpp | |
| parent | make alt+x work when no text is selected (diff) | |
| download | inkscape-51fa0f22f154223139c7a9983819417ace5be3bb.tar.gz inkscape-51fa0f22f154223139c7a9983819417ace5be3bb.zip | |
Don't crash when closing document with gradient tool being active (fixes bug #380934)
(bzr r8015)
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index edb925135..d5144e9f0 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -1324,7 +1324,11 @@ sp_desktop_query_style(SPDesktop *desktop, SPStyle *style, int property) return ret; // subselection returned a style, pass it on // otherwise, do querying and averaging over selection - return sp_desktop_query_style_from_list ((GSList *) desktop->selection->itemList(), style, property); + if (desktop->selection != NULL) { + return sp_desktop_query_style_from_list ((GSList *) desktop->selection->itemList(), style, property); + } + + return QUERY_STYLE_NOTHING; } /** |
