mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
remove stupid endless loop
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3488 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
09cd93c517
commit
828fe3bc12
@ -1193,9 +1193,8 @@ bool MathCursor::bruteFind(int x, int y, int xlow, int xhigh, int ylow, int yhig
|
||||
MathIterator it = ibegin(formula()->par().nucleus());
|
||||
MathIterator et = iend(formula()->par().nucleus());
|
||||
while (1) {
|
||||
// avoid invalid nesting hen selecting
|
||||
if (selection_ && !positionable(it.cursor(), Anchor_))
|
||||
continue;
|
||||
// avoid invalid nesting when selecting
|
||||
if (!selection_ || positionable(it.cursor(), Anchor_)) {
|
||||
int xo = it.position().xpos();
|
||||
int yo = it.position().ypos();
|
||||
if (xlow - 2 <= xo && xo <= xhigh + 2 &&
|
||||
@ -1207,6 +1206,7 @@ bool MathCursor::bruteFind(int x, int y, int xlow, int xhigh, int ylow, int yhig
|
||||
best_cursor = it.cursor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (it == et)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user