aboutsummaryrefslogtreecommitdiff
path: root/dw/iterator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r--dw/iterator.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc
index 019d8e07..78ac55f6 100644
--- a/dw/iterator.cc
+++ b/dw/iterator.cc
@@ -507,14 +507,25 @@ DeepIterator::DeepIterator (Iterator *it)
// \todo There may be a faster way instead of iterating through the
// parent widgets.
+ //printf ("STARTING WITH: ");
+ //it->print ();
+ //printf ("\n");
+
// Construct the iterators.
int thisLevel = it->getWidget()->getLevel (), level;
Widget *w;
for (w = it->getWidget (), level = thisLevel; w->getParent() != NULL;
w = w->getParent (), level--) {
Iterator *it = w->getParent()->iterator (mask, false);
+
+ //printf (" parent: %s %p\n", w->getClassName (), w);
+
stack.put (it, level - 1);
while (true) {
+ //printf (" ");
+ //it->print ();
+ //printf ("\n");
+
bool hasNext = it->next();
assert (hasNext);
@@ -522,6 +533,7 @@ DeepIterator::DeepIterator (Iterator *it)
it->getContent()->widget == w)
break;
}
+
}
stack.put (it, thisLevel);