diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-10-12 16:19:14 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-10-12 16:19:14 +0000 |
| commit | 1d31429ac10d5fa47a611cfc2e89f4c313c1ad16 (patch) | |
| tree | 4e196732a644a00f7f34a4651e37b7ca481426b7 /src/path-chemistry.cpp | |
| parent | object-snapper.cpp : make the logic easier to read (use else-clause as defaul... (diff) | |
| download | inkscape-1d31429ac10d5fa47a611cfc2e89f4c313c1ad16.tar.gz inkscape-1d31429ac10d5fa47a611cfc2e89f4c313c1ad16.zip | |
path combine: add an assert to indicate that item list cannot be empty
(bzr r13602)
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
