Commit cdb9d264 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix ctrl-end in presence of hidden rows. [#643971]

2011-03-07  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* src/sheet-control-gui.c (scg_cursor_move): check one row at a time.
parent cba9bb9f
2011-03-07 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-control-gui.c (scg_cursor_move): check one row at a time.
2011-03-04 Morten Welinder <terra@gnome.org>
* src/parse-util.c (std_external_wb): New function.
......
......@@ -10,6 +10,7 @@ Andreas:
* Fix crash on resaving LibreOffice created xlsx files with unauthored
comments. [#642850]
* Trigger configurable text importer on paste of tabs. [#395631]
* Fix ctrl-end in presence of hidden rows. [#643971]
Jean:
* Fix cursor position inside a cell edited in a zoomed sheet. [#641709]
......
......@@ -3347,7 +3347,7 @@ scg_rangesel_extend (SheetControlGUI *scg, int n,
* scg_cursor_move:
*
* @scg : The scg
* @count : Number of units to move the cursor vertically
* @count : Number of units to move the cursor
* @jump_to_bound: skip from the start to the end of ranges
* of filled or unfilled cells.
* @horiz : is the movement horizontal or vertical
......@@ -3360,18 +3360,21 @@ scg_cursor_move (SheetControlGUI *scg, int n,
{
SheetView *sv = scg_view (scg);
GnmCellPos tmp = sv->edit_pos_real;
int step = (n>0) ? 1 : -1;
if (!wbcg_edit_finish (scg->wbcg, WBC_EDIT_ACCEPT, NULL))
return;
if (horiz)
tmp.col = sheet_find_boundary_horizontal (sv->sheet,
tmp.col, tmp.row, tmp.row,
n, jump_to_bound);
tmp.col + n - step, tmp.row, tmp.row,
step, jump_to_bound);
else
tmp.row = sheet_find_boundary_vertical (sv->sheet,
tmp.col, tmp.row, tmp.col,
n, jump_to_bound);
tmp.row = sheet_find_boundary_vertical
(sv->sheet,
tmp.col, tmp.row + n - step,
tmp.col,
step, jump_to_bound);
sv_selection_reset (sv);
sv_cursor_set (sv, &tmp,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment