+2005-04-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * math_data.C (x2pos): fix math cursor positioning bug
+
2005-03-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_amsarrayinset.[Ch] (validate): new, require amsmath
currx += glue;
currx += (*it)->width();
}
+
if (abs(lastx - targetx) < abs(currx - targetx) && it != begin())
--it;
+ // The below code guarantees that in this slice, the cursor will
+ // never be on the right edge of an inset after a mouse click.
+ if (it != begin())
+ --it;
+ if (it < end() && (*it)->getChar())
+ ++it;
+
return it - begin();
}