diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-07-24 23:18:08 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-07-24 23:18:08 +0000 |
| commit | 6a65a35182b059890732c0ddc9be9d0a3a37b941 (patch) | |
| tree | 155adc583308036962fce120af8baefc5693c21a /src/widgets | |
| parent | update to trunk (diff) | |
| download | inkscape-6a65a35182b059890732c0ddc9be9d0a3a37b941.tar.gz inkscape-6a65a35182b059890732c0ddc9be9d0a3a37b941.zip | |
change from list to vector
(bzr r13973.1.16)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/pencil-toolbar.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/pencil-toolbar.cpp b/src/widgets/pencil-toolbar.cpp index a06d76d01..f2214bf49 100644 --- a/src/widgets/pencil-toolbar.cpp +++ b/src/widgets/pencil-toolbar.cpp @@ -246,10 +246,9 @@ static void sp_pencil_tb_tolerance_value_changed(GtkAdjustment *adj, GObject *tb gtk_adjustment_get_value(adj)); g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) ); SPDesktop *desktop = static_cast<SPDesktop *>(g_object_get_data(tbl, "desktop")); - std::list<SPItem *> selected; - selected.insert<GSListConstIterator<SPItem *> >(selected.end(), desktop->getSelection()->itemList(), NULL); + std::vector<SPItem *> selected = desktop->getSelection()->itemList(); if(!selected.empty()){ - for (std::list<SPItem *>::iterator it(selected.begin()); it != selected.end(); ++it){ + for (std::vector<SPItem *>::iterator it(selected.begin()); it != selected.end(); ++it){ SPLPEItem* lpeitem = dynamic_cast<SPLPEItem*>(*it); if (lpeitem && lpeitem->hasPathEffect()){ Inkscape::LivePathEffect::Effect* thisEffect = lpeitem->getPathEffectOfType(Inkscape::LivePathEffect::SIMPLIFY); |
