Permalink
Browse files

Fix bug where sub-search folder iteration didn't work correctly

  • Loading branch information...
1 parent e2fcf4b commit d4450d91ed397f38ed7e6909297255bffaf4c7ee @terrymah committed Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 fairport/pst/folder.h
View
@@ -232,7 +232,7 @@ class folder
//! \brief Get the end search folder iterator
//! \returns an iterator at the end position
search_folder_iterator sub_search_folder_end() const
- { return boost::make_transform_iterator(boost::make_filter_iterator<is_nid_type<nid_type_search_folder> >(get_hierarchy_table().begin(), get_hierarchy_table().end()), search_folder_transform_row(m_db)); }
+ { return boost::make_transform_iterator(boost::make_filter_iterator<is_nid_type<nid_type_search_folder> >(get_hierarchy_table().end(), get_hierarchy_table().end()), search_folder_transform_row(m_db)); }
//! \brief Open a specific subfolder in this folder, not recursive
//! \param[in] name The name of the folder to open

0 comments on commit d4450d9

Please sign in to comment.