mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
fix for #219
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3471 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fcb622b800
commit
87eea8ccf1
@ -1186,7 +1186,7 @@ bool MathCursor::bruteFind(int x, int y, int xlow, int xhigh, int ylow, int yhig
|
|||||||
|
|
||||||
MathIterator it = ibegin(formula()->par().nucleus());
|
MathIterator it = ibegin(formula()->par().nucleus());
|
||||||
MathIterator et = iend(formula()->par().nucleus());
|
MathIterator et = iend(formula()->par().nucleus());
|
||||||
for ( ; it != et; ++it) {
|
while (1) {
|
||||||
// avoid invalid nesting hen selecting
|
// avoid invalid nesting hen selecting
|
||||||
if (selection_ && !positionable(it.cursor(), Anchor_))
|
if (selection_ && !positionable(it.cursor(), Anchor_))
|
||||||
continue;
|
continue;
|
||||||
@ -1201,7 +1201,12 @@ bool MathCursor::bruteFind(int x, int y, int xlow, int xhigh, int ylow, int yhig
|
|||||||
best_cursor = it.cursor();
|
best_cursor = it.cursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (it == et)
|
||||||
|
break;
|
||||||
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (best_dist < 1e10)
|
if (best_dist < 1e10)
|
||||||
Cursor_ = best_cursor;
|
Cursor_ = best_cursor;
|
||||||
return best_dist < 1e10;
|
return best_dist < 1e10;
|
||||||
|
Loading…
Reference in New Issue
Block a user