From 1d31429ac10d5fa47a611cfc2e89f4c313c1ad16 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sun, 12 Oct 2014 18:19:14 +0200 Subject: path combine: add an assert to indicate that item list cannot be empty (bzr r13602) --- src/path-chemistry.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index d355b49fe..787193060 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -78,6 +78,7 @@ sp_selected_path_combine(SPDesktop *desktop) items = g_slist_sort(items, (GCompareFunc) sp_item_repr_compare_position); items = g_slist_reverse(items); + assert(items); // cannot be NULL because of list length check at top of function // remember the position, id, transform and style of the topmost path, they will be assigned to the combined one gint position = 0; -- cgit v1.2.3