avoid extra iterator increment, so that Option/Paths work
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Mar 2016 01:42:39 +0000 (20:42 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Mar 2016 01:42:39 +0000 (20:42 -0500)
gtk2_ardour/option_editor.cc

index 889fafceb4cc1ebcadc6b46af97bb2ed4915e75e..6f3db85006f25c681e50292fd82130235b6bbd98 100644 (file)
@@ -564,7 +564,7 @@ OptionEditor::add_path_to_treeview (std::string const & pn, Gtk::Widget& widget)
 
                /* foreach path component ... */
 
-               for (std::vector<std::string>::const_iterator s = components.begin(); s != components.end(); ++s) {
+               for (std::vector<std::string>::const_iterator s = components.begin(); s != components.end(); ) {
 
                        bool component_found = false;