mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix to 2249 (cursor mathed positioning)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10806 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aac47f6579
commit
26cae2254e
@ -1,3 +1,8 @@
|
|||||||
|
2006-02-03 Martin Vermeer <martin.vermeer@hut.fi>
|
||||||
|
|
||||||
|
* cursor.C (bruteFind2): convert relative to absolute co-ordinates
|
||||||
|
for correct in-mathed positioning
|
||||||
|
|
||||||
2006-02-03 Martin Vermeer <martin.vermeer@hut.fi>
|
2006-02-03 Martin Vermeer <martin.vermeer@hut.fi>
|
||||||
|
|
||||||
* rowpainter.C (paintForeignMark): fix foreign blue line under
|
* rowpainter.C (paintForeignMark): fix foreign blue line under
|
||||||
|
@ -97,7 +97,12 @@ namespace {
|
|||||||
for (size_t i = 0; ; ++i) {
|
for (size_t i = 0; ; ++i) {
|
||||||
int xo;
|
int xo;
|
||||||
int yo;
|
int yo;
|
||||||
it.inset().cursorPos(it.top(), c.boundary() && ((i+1) == it.depth()), xo, yo);
|
InsetBase const * inset = &it.inset();
|
||||||
|
Point o = theCoords.getInsets().xy(inset);
|
||||||
|
inset->cursorPos(it.top(), c.boundary(), xo, yo);
|
||||||
|
// Convert to absolute
|
||||||
|
xo += o.x_;
|
||||||
|
yo += o.y_;
|
||||||
double d = (x - xo) * (x - xo) + (y - yo) * (y - yo);
|
double d = (x - xo) * (x - xo) + (y - yo) * (y - yo);
|
||||||
// '<=' in order to take the last possible position
|
// '<=' in order to take the last possible position
|
||||||
// this is important for clicking behind \sum in e.g. '\sum_i a'
|
// this is important for clicking behind \sum in e.g. '\sum_i a'
|
||||||
|
Loading…
Reference in New Issue
Block a user