Lars Gullik Bjønnes a écrit :
Abdelrazak Younes <[EMAIL PROTECTED]> writes:

| Index: text3.C
| ===================================================================
| --- text3.C   (revision 13775)
| +++ text3.C   (working copy)
| @@ -330,7 +330,7 @@
| | ParIterator begin(cur);
|               ++cur.pit();
| -             ParIterator end = boost::next(cur);
| +             ParIterator end = boost::next(ParIterator(cur));

Hmm da hmm...

        ParIterator begin(cur);
        ParIterator end = BOOST::next(begin);
        ++cur.pit();

(I have no idea were/when the '++cur.put()' needs to take place)

That's the problem indeed, it has to be before because end is two steps after begin non counting potential inner insets.


|               updateLabels(cur.buffer(), begin, end);
| | needsUpdate = true;
| @@ -343,7 +343,7 @@
|               finishUndo();
|               std::swap(pars_[pit], pars_[pit - 1]);
| | - ParIterator end = boost::next(cur);
| +             ParIterator end = boost::next(ParIterator(cur));
|               --cur.pit();
|               ParIterator begin(cur);

Something similar here... create end from begin.

Same problem here. If I create begin from end I need to go two steps backward.

Abdel.

Reply via email to