On Fri, 2006-02-24 at 01:27 +0200, Martin Vermeer wrote:
> On Fri, Feb 24, 2006 at 12:13:50AM +0100, Joost Verburg wrote:
> > Martin Vermeer wrote:
> > >if you change
> > >
> > > if (it != begin()
> > >
> > >into
> > >
> > > if (it != begin() && currx >= targetx
> > >
> > >I expect Joost will find it behaving slightly better in the situation he
> > >complained about. It won't fix everything though.
> > >
> > >- Martin
> >
> > I'll try this one.
> >
> > With the last patch of JMarc, it is also still not possible to reach the
> > position after a fraction if that's last part of the equation.
> >
> > Example: $a=\frac{b}{c}$
>
> The modification should fix that.
>
> You still will not be able to get between the )( in
>
> [(a)(b)]With the attached patch added, you will be even able to do that :-) BTW Jean-Marc, this works, but would it perhaps be better to make MathNestInset inherit (from InsetBase) and modify covers(x,y)? - Martin
Index: math_nestinset.C
===================================================================
--- math_nestinset.C (revision 13270)
+++ math_nestinset.C (working copy)
@@ -1029,7 +1029,8 @@
if (dist_min == 0) {
// hit inside cell
for (pos_type i = 0, n = ar.size(); i < n; ++i)
- if (ar[i]->covers(x, y))
+ // Provide an extra inert sliver to get in-between:
+ if (ar[i]->covers(x, y) && x >= ar[i]->xo() + 2)
return ar[i].nucleus()->editXY(cur, x, y);
}
return this;
signature.asc
Description: This is a digitally signed message part
