diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-12 00:47:04 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-12 00:47:04 +0000 |
| commit | 6c00ff5099e1dff2bcc08eba9f3d0bf3c95a4a12 (patch) | |
| tree | 3eb7b7c8b0fb1a8e18daf8edc6977e835b073438 /src/widgets | |
| parent | static code checking (Bug #614223) (diff) | |
| download | inkscape-6c00ff5099e1dff2bcc08eba9f3d0bf3c95a4a12.tar.gz inkscape-6c00ff5099e1dff2bcc08eba9f3d0bf3c95a4a12.zip | |
Fix for 1048958 : Unexpected count '#' of swatch fill uses for clones
(bzr r11664)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/gradient-vector.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index db8c76b9b..88fe15dca 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -430,6 +430,8 @@ void gr_get_usage_counts(SPDocument *doc, std::map<SPGradient *, gint> *mapUsage for (GSList *i = all_list; i != NULL; i = i->next) { SPItem *item = SP_ITEM(i->data); + if (!item->getId()) + continue; SPGradient *gr = NULL; gr = gr_item_get_gradient(item, true); // fill if (gr) { |
