Commit e86ef7d6 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg
Browse files

position the cursors for the newly attached control.


2002-06-23  Jody Goldberg <jody@gnome.org>

	* src/sheet-view.c (sv_attach_control) : position the cursors for the
	  newly attached control.
parent 778809a4
......@@ -11,8 +11,6 @@ Release Critical
plugins won't load on Solaris/gcc. (This might just be my bastard libtool.)
- 3D reference fixes on sheet deletion
- Dependencies for constructed ranges
- Figure out why the cursor is not on the edit pos when loading an xls fromthe
cmd line.
- Finish support for named ranges in applix.
- mps importer fails to import the mps sample files afiro.mps and blend.mps
......
2002-06-23 Jody Goldberg <jody@gnome.org>
* src/sheet-view.c (sv_attach_control) : position the cursors for the
newly attached control.
* src/func-builtin.c (func_builtin_init) : delete the 'selection'
function. It is no longer possible with a sheetview.
......
2002-06-23 Jody Goldberg <jody@gnome.org>
* src/sheet-view.c (sv_attach_control) : position the cursors for the
newly attached control.
* src/func-builtin.c (func_builtin_init) : delete the 'selection'
function. It is no longer possible with a sheetview.
......
2002-06-23 Jody Goldberg <jody@gnome.org>
* src/sheet-view.c (sv_attach_control) : position the cursors for the
newly attached control.
* src/func-builtin.c (func_builtin_init) : delete the 'selection'
function. It is no longer possible with a sheetview.
......
......@@ -79,6 +79,8 @@ sv_wbv (SheetView const *sv)
void
sv_attach_control (SheetView *sv, SheetControl *sc)
{
Range bound;
g_return_if_fail (IS_SHEET_VIEW (sv));
g_return_if_fail (IS_SHEET_CONTROL (sc));
g_return_if_fail (sc->view == NULL);
......@@ -88,6 +90,11 @@ sv_attach_control (SheetView *sv, SheetControl *sc)
g_ptr_array_add (sv->controls, sc);
sc->view = sv;
sc->sheet = sv_sheet (sv); /* convenient */
bound.start = sv->cursor.base_corner;
bound.end = sv->cursor.move_corner;
range_normalize (&bound);
sc_cursor_bound (sc, &bound);
}
void
......
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