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:
André Pönitz 2002-02-05 16:30:56 +00:00
parent 09cd93c517
commit 828fe3bc12

View File

@ -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;