diff options
Diffstat (limited to 'src/gradient-context.cpp')
| -rw-r--r-- | src/gradient-context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index 643b63f79..b4eeda290 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -147,6 +147,9 @@ gradient_selection_changed (Inkscape::Selection *, gpointer data) GrDrag *drag = rc->_grdrag; Inkscape::Selection *selection = sp_desktop_selection(SP_EVENT_CONTEXT(rc)->desktop); + if (selection == NULL) { + return; + } guint n_obj = g_slist_length((GSList *) selection->itemList()); if (!drag->isNonEmpty() || selection->isEmpty()) |
