Fix crash with PageDown/Up when the next/previous paragraph is an inset taller

than the workarea.

	* src/text3.C
	(cursorPrevious): use cur.dispatch(FuncRequest(LFUN_UP)) instead of
	cursorUp(cur).
	(cursorNext): ditto for cur.dispatch(FuncRequest(LFUN_DOWN)) vs
	cursorDown(cur).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16225 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2006-12-10 02:43:28 +00:00
parent 2800f35900
commit c1d417fa65
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2006-12-10 Enrico Forestieri <forenr@tlc.unipr.it>
* text3.C (cursorPrevious): use cur.dispatch(FuncRequest(LFUN_UP))
instead of cursorUp(cur).
(cursorNext): ditto for cur.dispatch(FuncRequest(LFUN_DOWN)) vs
cursorDown(cur).
2006-12-08 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* paragraph.C (startTeXParams, endTeXParams):

View File

@ -203,12 +203,12 @@ bool LyXText::cursorPrevious(LCursor & cur)
bool updated = setCursorFromCoordinates(cur, x, 0);
if (updated)
cur.bv().update();
updated |= cursorUp(cur);
cur.dispatch(FuncRequest(LFUN_UP));
if (cpar == cur.pit() && cpos == cur.pos()) {
// we have a row which is taller than the workarea. The
// simplest solution is to move to the previous row instead.
updated |= cursorUp(cur);
cur.dispatch(FuncRequest(LFUN_UP));
}
cur.bv().updateScrollbar();
@ -226,12 +226,12 @@ bool LyXText::cursorNext(LCursor & cur)
bool updated = setCursorFromCoordinates(cur, x, cur.bv().workHeight() - 1);
if (updated)
cur.bv().update();
updated |= cursorDown(cur);
cur.dispatch(FuncRequest(LFUN_DOWN));
if (cpar == cur.pit() && cpos == cur.pos()) {
// we have a row which is taller than the workarea. The
// simplest solution is to move to the next row instead.
updated |= cursorDown(cur);
cur.dispatch(FuncRequest(LFUN_DOWN));
}
cur.bv().updateScrollbar();

View File

@ -124,6 +124,9 @@ What's new
- Fix slowness with lots of math on Windows (bug 2900).
- Fix a crash with PageDown/Up when the next/previous paragraph is an inset
taller than the workarea.
* Build/installation:
- Allow autoconf 2.60 for building.