Il 08/07/2011 15:19, Helge Hafting ha scritto:
While translating, I came a cross an infinite loop bug in the advanced
search.
hopefully, this was fixed in r39266. Thanks for report.
Bye,
Tommaso
To reproduce:
1. Enter some text, such as "a text text text a text"
2. Use advanced search and replace. Specifically, replace the
letter "a" with this math construct:
1
-----
a+b
3. Click "replace all", notice that both a's is replaced
4. when the search reaches the end, answer "yes" to the
question about wrapping around.
5. Watch LyX explode with infinite fractions, as the "a" in the
denominator gets replaced with a new fraction before the
search recurse into the freshly inserted fraction.
Suggestion for a fix:
After replacing, move the starting point for continued searching to
_after_ the replaced text. That avoids an infinite loop when the
replacement text happens to contain the item being searched for.
Helge Hafting