Commit e29ab7db authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Bug 3289

1999-12-19  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_cut) : Fix Typo.

	* src/item-bar.c (item_bar_start_resize) : Don't bother setting the
	  location of the line here.  Instead we set the correctly zoomed
	  bounds of the static-dimension.
	(item_bar_end_resize) : Clear the saved points.
	(item_bar_init) : Init the guide and points to NULL;
	(item_bar_event) : No need to call canvas to world.  We zoom manually.
	(item_bar_get_line_points) : Delete.
parent bcdc766d
......@@ -61,14 +61,14 @@ sheet_view_redraw_cell_region (SheetView *sheet_view, int start_col, int start_r
g_return_if_fail (GNUMERIC_IS_SHEET (gsheet));
canvas = GNOME_CANVAS (gsheet);
if ((end_col < gsheet->top_col) ||
if ((end_col < gsheet->left_col) ||
(end_row < gsheet->top_row) ||
(start_col > gsheet->last_visible_col) ||
(start_row > gsheet->last_visible_row))
return;
/* The region on which we care to redraw */
first_col = MAX (gsheet->top_col, start_col);
first_col = MAX (gsheet->left_col, start_col);
first_row = MAX (gsheet->top_row, start_row);
last_col = MIN (gsheet->last_visible_col, end_col);
last_row = MIN (gsheet->last_visible_row, end_row);
......@@ -95,10 +95,10 @@ sheet_view_redraw_cell_region (SheetView *sheet_view, int start_col, int start_r
}
/* Only draw those regions that are visible */
min_col = MAX (MIN (first_col, min_col), gsheet->top_col);
min_col = MAX (MIN (first_col, min_col), gsheet->left_col);
max_col = MIN (MAX (last_col, max_col), gsheet->last_visible_col);
x = sheet_col_get_distance (sheet, gsheet->top_col, min_col);
x = sheet_col_get_distance (sheet, gsheet->left_col, min_col);
y = sheet_row_get_distance (sheet, gsheet->top_row, first_row);
w = sheet_col_get_distance (sheet, min_col, max_col+1);
h = sheet_row_get_distance (sheet, first_row, last_row+1);
......@@ -227,7 +227,7 @@ sheet_view_scrollbar_config (SheetView const *sheet_view)
ha->upper = MAX (MAX (last_col,
sheet_view->sheet->cols.max_used),
sheet->cursor_col);
ha->page_size = last_col - gsheet->top_col;
ha->page_size = last_col - gsheet->left_col;
ha->step_increment = ha->page_increment =
ha->page_size / 2;
......
......@@ -61,14 +61,14 @@ sheet_view_redraw_cell_region (SheetView *sheet_view, int start_col, int start_r
g_return_if_fail (GNUMERIC_IS_SHEET (gsheet));
canvas = GNOME_CANVAS (gsheet);
if ((end_col < gsheet->top_col) ||
if ((end_col < gsheet->left_col) ||
(end_row < gsheet->top_row) ||
(start_col > gsheet->last_visible_col) ||
(start_row > gsheet->last_visible_row))
return;
/* The region on which we care to redraw */
first_col = MAX (gsheet->top_col, start_col);
first_col = MAX (gsheet->left_col, start_col);
first_row = MAX (gsheet->top_row, start_row);
last_col = MIN (gsheet->last_visible_col, end_col);
last_row = MIN (gsheet->last_visible_row, end_row);
......@@ -95,10 +95,10 @@ sheet_view_redraw_cell_region (SheetView *sheet_view, int start_col, int start_r
}
/* Only draw those regions that are visible */
min_col = MAX (MIN (first_col, min_col), gsheet->top_col);
min_col = MAX (MIN (first_col, min_col), gsheet->left_col);
max_col = MIN (MAX (last_col, max_col), gsheet->last_visible_col);
x = sheet_col_get_distance (sheet, gsheet->top_col, min_col);
x = sheet_col_get_distance (sheet, gsheet->left_col, min_col);
y = sheet_row_get_distance (sheet, gsheet->top_row, first_row);
w = sheet_col_get_distance (sheet, min_col, max_col+1);
h = sheet_row_get_distance (sheet, first_row, last_row+1);
......@@ -227,7 +227,7 @@ sheet_view_scrollbar_config (SheetView const *sheet_view)
ha->upper = MAX (MAX (last_col,
sheet_view->sheet->cols.max_used),
sheet->cursor_col);
ha->page_size = last_col - gsheet->top_col;
ha->page_size = last_col - gsheet->left_col;
ha->step_increment = ha->page_increment =
ha->page_size / 2;
......
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