Re: Assert on setCursor()

2009-07-26 Thread Pavel Sanda
Tommaso Cucinotta wrote: > I forgot to please ask somebody to commit this patch, as I can't. i already understood, but knowing basically nothing about tabular stuff waited for somebody competent to review, since "heurictic" patch made somewhat suspicious ;) pavel

Re: Assert on setCursor()

2009-07-26 Thread Tommaso Cucinotta
I forgot to please ask somebody to commit this patch, as I can't. Thx, T. Tommaso Cucinotta ha scritto: Hi again, with the attached ("heuristic") patch I fixed this problem, which was arising when searching for stuff inside a math environment nested inside a table cell (i.e., searching f

Re: Assert on setCursor()

2009-07-25 Thread Tommaso Cucinotta
Hi again, with the attached ("heuristic") patch I fixed this problem, which was arising when searching for stuff inside a math environment nested inside a table cell (i.e., searching for a+b inside Math.lyx). In such segments, I'm assuming the direction is Left To Right (but don't actually kn

Assert on setCursor()

2009-07-25 Thread Tommaso Cucinotta
Hi all, could anyone please explain what is the purpose of the "- 2", in this method (from InsetTabular.cpp) ? 5090bool InsetTabular::isRightToLeft(Cursor & cur) const 5091{ 5092LASSERT(cur.depth() > 1, /**/); 5093Paragraph const & parentpar = cur[cur.depth() - 2].parag