summaryrefslogtreecommitdiff
path: root/dw/iterator.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-10-08 11:29:14 +0200
committerSebastian Geerken <devnull@localhost>2012-10-08 11:29:14 +0200
commitd3c0fe575e06cfce5b595ba615e885fd189cd75a (patch)
tree868feff5a0a77c5d7b60067f02b21bf31547816a /dw/iterator.cc
parentb51b9f79bf0f2f964507905bdeb9f38621407451 (diff)
Work on iterators: finding text works (in a temporal way).
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r--dw/iterator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc
index 73beca6f..d42bdae3 100644
--- a/dw/iterator.cc
+++ b/dw/iterator.cc
@@ -456,6 +456,10 @@ Iterator *DeepIterator::searchSideward (Iterator *it, Content::Type mask,
*/
DeepIterator::DeepIterator (Iterator *it)
{
+ // Handling widget references will be a bit more complicated, so we
+ // prohibit it at this point.
+ assert ((it->getMask() & Content::WIDGET_OOF_REF) == 0);
+
//DEBUG_MSG (1, "a_Dw_ext_iterator_new: %s\n", a_Dw_iterator_text (it));
// Clone input iterator, so the iterator passed as parameter