diff options
| author | Michael Soegtrop <MSoegtrop@yahoo.de> | 2016-05-23 20:36:18 +0000 |
|---|---|---|
| committer | Michael Soegtrop <MSoegtrop@yahoo.de> | 2016-05-23 20:36:18 +0000 |
| commit | 9b667f5ad22543b88067107425ec55ef972e2ff0 (patch) | |
| tree | 933384cbb74b5bca4c94417e1ebd6270688bbb9a /src/gradient-chemistry.cpp | |
| parent | Added bool LPE (diff) | |
| parent | Fix regression: restore order in resources (e.g. pattern list) (diff) | |
| download | inkscape-9b667f5ad22543b88067107425ec55ef972e2ff0.tar.gz inkscape-9b667f5ad22543b88067107425ec55ef972e2ff0.zip | |
Fixed Bool LPE review issues
(bzr r14876.2.2)
Diffstat (limited to 'src/gradient-chemistry.cpp')
| -rw-r--r-- | src/gradient-chemistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 7b4c0ac20..edeb523d7 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -1612,8 +1612,8 @@ void sp_gradient_unset_swatch(SPDesktop *desktop, std::string id) SPDocument *doc = desktop ? desktop->doc() : 0; if (doc) { - const std::set<SPObject *> gradients = doc->getResourceList("gradient"); - for (std::set<SPObject *>::const_iterator i = gradients.begin(); i != gradients.end(); ++i) { + const std::vector<SPObject *> gradients = doc->getResourceList("gradient"); + for (std::vector<SPObject *>::const_iterator i = gradients.begin(); i != gradients.end(); ++i) { SPGradient* grad = SP_GRADIENT(*i); if ( id == grad->getId() ) { grad->setSwatch(false); |
