On Sun, Oct 19, 2003 at 08:40:26PM +0300, Martin Vermeer wrote:

> Would it be possible at this point to force the *row* that a displayed
> math inset is on, to be aligned centre? Then (1) the offset_ hack in
> formula.C will no longer be needed, and (2) also the cursor will be
> positioned correctly before of after the mathinset (a bug I haven't
> yet mentioned).
> 
> Does this sound like a plan?

Sounds like exactly what we need to be doing.

> +             // Break before...      
> +             if (i + 1 < last) {
> +                     in = pit->isInset(i + 1) ? pit->getInset(i + 1) : 0;
> +                     if (in) {
> +                             if (in->display()) {
> +                                     point = i;
> +                                     break;
> +                             }
> +                     }
> +                     // ...and after.
> +                     in = pit->isInset(i) ? pit->getInset(i) : 0;
> +                     if (in) {
> +                             if (in->display()) {
> +                                     point = i;
> +                                     break;
> +                             }
> +                     }
> +             }

Can't we make this a little helper function ? rowBreakPoint is bad
enough already ...

regards
john


-- 
Khendon's Law:
If the same point is made twice by the same person, the thread is over.

Reply via email to