summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 021bfeb)
raw | patch | inline | side by side (parent: 021bfeb)
author | bryce <bryce@users.sourceforge.net> | |
Wed, 10 Jan 2007 08:56:04 +0000 (08:56 +0000) | ||
committer | bryce <bryce@users.sourceforge.net> | |
Wed, 10 Jan 2007 08:56:04 +0000 (08:56 +0000) |
src/dialogs/stroke-style.cpp | patch | blob | history |
index ebfb7aca6d420e454d47fcf34e96cdd5ae03c200..3db6c62eed862a88beb2d2e0c627d8496700123d 100644 (file)
@@ -756,11 +756,13 @@ sp_marker_list_from_doc (GtkWidget *m, SPDocument *current_doc, SPDocument *sour
Inkscape::XML::Node *repr = SP_OBJECT_REPR((SPItem *) ml->data);
bool stock_dupe = false;
- GSList * markers_doc_ml = ink_marker_list_get(markers_doc);
- for (; markers_doc_ml != NULL; markers_doc_ml = markers_doc_ml->next) {
- const gchar* stockid = SP_OBJECT_REPR(markers_doc_ml->data)->attribute("inkscape:stockid");
- if (stockid && !strcmp(repr->attribute("inkscape:stockid"), stockid))
- stock_dupe = true;
+ if (repr->attribute("inkscape:stockid")) {
+ GSList * markers_doc_ml = ink_marker_list_get(markers_doc);
+ for (; markers_doc_ml != NULL; markers_doc_ml = markers_doc_ml->next) {
+ const gchar* stockid = SP_OBJECT_REPR(markers_doc_ml->data)->attribute("inkscape:stockid");
+ if (stockid && !strcmp(repr->attribute("inkscape:stockid"), stockid))
+ stock_dupe = true;
+ }
}
if (stock_dupe) // stock item, dont add to list from current doc