Commit 69c8a60d authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Correct double negative that was breaking printing for cells with multiple


2000-05-18  Jody Goldberg <jgoldberg@home.com>

	* src/print-cell.c (print_cell) : Correct double negative that was
	  breaking printing for cells with multiple lines that were bottom
	  or center aligned.
parent 824e25d5
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
2000-05-18 Jody Goldberg <jgoldberg@home.com>
* src/print-cell.c (print_cell) : Correct double negative that was
breaking printing for cells with multiple lines that were bottom
or center aligned.
* src/normal-args.c : Adjust includes to remove warning.
2000-05-18 Michael Meeks <michael@helixcode.com>
......
......@@ -361,8 +361,8 @@ print_cell (Cell const *cell, MStyle *mstyle, CellSpanInfo const * const spaninf
} while (halign == HALIGN_FILL && total < cell->col_info->size_pts && len > 0);
} else {
GList *lines, *l;
int line_count, x_offset, y_offset;
double inter_space;
int line_count;
double x_offset, y_offset, inter_space;
lines = cell_split_text (print_font, text, cell->col_info->size_pts);
line_count = g_list_length (lines);
......@@ -378,12 +378,12 @@ print_cell (Cell const *cell, MStyle *mstyle, CellSpanInfo const * const spaninf
switch (valign) {
case VALIGN_TOP:
y_offset = 0;
y_offset = 0.;
inter_space = font_height;
break;
case VALIGN_CENTER:
y_offset = - ((cell->row_info->size_pts -
y_offset = ((cell->row_info->size_pts -
(line_count * font_height)) / 2);
inter_space = font_height;
break;
......@@ -403,7 +403,7 @@ print_cell (Cell const *cell, MStyle *mstyle, CellSpanInfo const * const spaninf
/* Else, we become a VALIGN_BOTTOM line */
case VALIGN_BOTTOM:
y_offset = - (cell->row_info->size_pts - (line_count * font_height));
y_offset = (cell->row_info->size_pts - (line_count * font_height));
inter_space = font_height;
break;
......
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