diff options
| author | mc <> | 2015-02-18 10:25:23 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <mc> | 2015-02-18 10:25:23 +0000 |
| commit | 9e21d00fb1053897420f80d05a9815c5b2bbf312 (patch) | |
| tree | 9c0f61257c24e936d07526bd4b71a399825519b6 /src/splivarot.cpp | |
| parent | OMG IT'S COMPILING. (diff) | |
| download | inkscape-9e21d00fb1053897420f80d05a9815c5b2bbf312.tar.gz inkscape-9e21d00fb1053897420f80d05a9815c5b2bbf312.zip | |
I can't really understand why, but i can now launch inkscape without it segfaulting.
That's an improvement.
Next thing: code cleaning, replacing containers with vectors
(bzr r13922.1.4)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index aec7051e0..107dfc629 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -691,11 +691,11 @@ sp_selected_path_boolop(Inkscape::Selection *selection, SPDesktop *desktop, bool } } else { // find out the bottom object - SelContainer sorted(selection->reprList()); + std::vector<Inkscape::XML::Node*> sorted(selection->reprList()); - sorted.sort(sp_repr_compare_position_obj); + sort(sorted.begin(),sorted.end(),sp_repr_compare_position); - source = doc->getObjectByRepr((Inkscape::XML::Node *)sorted.front()); + source = doc->getObjectByRepr(sorted.front()); } // adjust style properties that depend on a possible transform in the source object in order |
