[pan2] debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568332



commit af878257ee5dba08a350e2a8f73493b661a4320f
Author: Heinrich Müller <heinrich mueller82 gmail com>
Date:   Fri May 15 08:54:41 2015 +0200

    debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568332

 pan/data-impl/my-tree.cc |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/pan/data-impl/my-tree.cc b/pan/data-impl/my-tree.cc
index 98046bb..6d8d84f 100644
--- a/pan/data-impl/my-tree.cc
+++ b/pan/data-impl/my-tree.cc
@@ -213,10 +213,11 @@ DataImpl :: MyTree :: apply_rules (const_nodes_v& candidates)
   //  maybe include threads or subthreads...
   if (_show_type == Data::SHOW_THREADS)
   {
-    foreach (const_nodes_v, pass, it) {
-      const ArticleNode *& n (*it);
-      while (n->_parent)
-        n = n->_parent;
+    const_nodes_v passcopy=pass;
+    foreach (const_nodes_v, passcopy, it) {
+      const ArticleNode *n (*it);
+      while ((n = n->_parent))
+        pass.push_back(n);
     }
     std::sort (pass.begin(), pass.end(), compare);
     pass.erase (std::unique (pass.begin(), pass.end()), pass.end());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]