~msoegtrop/inkscape/embroidery

« back to all changes in this revision

Viewing changes to src/gradient-drag.cpp

  • Committer: Michael Soegtrop
  • Date: 2017-06-05 13:13:40 UTC
  • mfrom: (14862.1.45 inkscape)
  • Revision ID: msoegtrop@yahoo.de-20170605131340-5zjk9ihhdm1hadzs
updated to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        Glib::ustring::size_type pos = colorStr.find("url(#");
209
209
        if ( pos != Glib::ustring::npos ) {
210
210
            Glib::ustring targetName = colorStr.substr(pos + 5, colorStr.length() - 6);
211
 
            std::set<SPObject *> gradients = desktop->doc()->getResourceList("gradient");
212
 
            for (std::set<SPObject *>::const_iterator it = gradients.begin(); it != gradients.end(); ++it) {
 
211
            std::vector<SPObject *> gradients = desktop->doc()->getResourceList("gradient");
 
212
            for (std::vector<SPObject *>::const_iterator it = gradients.begin(); it != gradients.end(); ++it) {
213
213
                SPGradient* grad = SP_GRADIENT(*it);
214
214
                if ( targetName == grad->getId() ) {
215
215
                    SPGradient *vect = grad->getVector();