~inkscape.dev/inkscape/gsoc2009_api

« back to all changes in this revision

Viewing changes to src/path-chemistry.cpp

  • Committer: Ted Gould
  • Date: 2010-01-01 04:39:28 UTC
  • mfrom: (8254.1.677 InkscapeBZR)
  • Revision ID: ted@gould.cx-20100101043928-01ebjhekfyk8hgqm
Keeping up with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    SPItem *first = NULL;
87
87
    Inkscape::XML::Node *parent = NULL; 
88
88
 
 
89
    if (did) {
 
90
        selection->clear();
 
91
    }
 
92
 
89
93
    for (GSList *i = items; i != NULL; i = i->next) {  // going from top to bottom
90
94
 
91
95
        SPItem *item = (SPItem *) i->data;
92
96
        if (!SP_IS_PATH(item))
93
97
            continue;
94
 
        did = true;
 
98
 
 
99
        if (!did) {
 
100
            selection->clear();
 
101
            did = true;
 
102
        }
95
103
 
96
104
        SPCurve *c = sp_path_get_curve_for_edit(SP_PATH(item));
97
105
        if (first == NULL) {  // this is the topmost path
124
132
    g_slist_free(items);
125
133
 
126
134
    if (did) {
127
 
        selection->clear();
128
 
 
129
 
        // delete the topmost one so that its clones don't get alerted; this object will be
130
 
        // restored shortly, with the same id
131
 
        SP_OBJECT(first)->deleteObject(false);
 
135
        // delete the topmost.
132
136
 
133
137
        Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
134
138
        Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");