Commit 91e89e9d authored by Jody Goldberg's avatar Jody Goldberg

Add some clarifying comments.

Fix stupid typo.
parent 7ea57502
2000-02-21 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : Doh!
* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
changes.
......
2000-02-21 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : Doh!
* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
changes.
......
......@@ -178,7 +178,8 @@ cell_draw (Cell *cell, MStyle *mstyle,
start_col, cell->col->pos);
rect.x -= offset;
rect.width += offset;
} else if (end_col != cell->col->pos) {
}
if (end_col != cell->col->pos) {
int const offset =
sheet_col_get_distance_pixels (cell->sheet,
cell->col->pos+1, end_col+1);
......
......@@ -3240,6 +3240,7 @@ col_row_info_init (Sheet *sheet, double pts, int margin_a, int margin_b,
* sheet_col_get_distance_pixels:
*
* Return the number of pixels between from_col to to_col
* measured from the upper left corner.
*/
int
sheet_col_get_distance_pixels (Sheet const *sheet, int from, int to)
......@@ -3271,6 +3272,7 @@ sheet_col_get_distance_pixels (Sheet const *sheet, int from, int to)
* sheet_col_get_distance_pts:
*
* Return the number of points between from_col to to_col
* measured from the upper left corner.
*/
double
sheet_col_get_distance_pts (Sheet const *sheet, int from, int to)
......@@ -3377,6 +3379,7 @@ sheet_col_set_default_size_pts (Sheet *sheet, double width_pts)
* sheet_row_get_distance_pixels:
*
* Return the number of pixels between from_row to to_row
* measured from the upper left corner.
*/
int
sheet_row_get_distance_pixels (Sheet const *sheet, int from, int to)
......@@ -3408,6 +3411,7 @@ sheet_row_get_distance_pixels (Sheet const *sheet, int from, int to)
* sheet_row_get_distance_pts:
*
* Return the number of points between from_row to to_row
* measured from the upper left corner.
*/
double
sheet_row_get_distance_pts (Sheet const *sheet, int from, int to)
......
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