Andre Poenitz wrote:

> +void DocumentIterator::forwardPar()
> +{
> +     while (true) {
> +             size_t old_depth = depth();
> +             idx_type old_idx = idx();
> +             par_type old_par = par();
> +
> +             forwardPos();
> +
> +             if (empty())
> +                     break;
> +
> +             if (text()) {
> +                     if (depth() > old_depth)
> +                             break;
> +                     if (depth() == old_depth
> +                         && (old_idx != idx() || old_par != par()))
> +                             break;
> +             }
> +     }
> +}
> 
> I would have simply checked for pos() == 0 && inTexted().

Good idea, thanks ;-)

Alfredo


Reply via email to