Commit f08f4130 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder
Browse files

Fix zoom issue #332932.

2006-03-01  Morten Welinder  <terra@gnome.org>

	* src/print-cell.c (print_cell): Fix zoom issue #332932.
parent 9ae2b41f
2006-03-01 Morten Welinder <terra@gnome.org>
* src/print-cell.c (print_cell): Fix zoom issue #332932.
2006-02-04 J.H.M. Dassen (Ray) <jdassen@debian.org>
* README: sync goffice requirement with configure.in. Noted by Nick
......
Gnumeric 1.6.3
Morten:
* Fix printing issue when sheet is zoomed. [#332932]
--------------------------------------------------------------------------
Gnumeric 1.6.2
Ivan, Y.C. Wong:
......
2006-03-01 Morten Welinder <terra@gnome.org>
* src/print-cell.c (print_cell): Fix zoom issue #332932.
2006-02-04 J.H.M. Dassen (Ray) <jdassen@debian.org>
* README: sync goffice requirement with configure.in. Noted by Nick
......
......@@ -103,11 +103,28 @@ print_cell (GnmCell const *cell, GnmStyle const *mstyle,
* Simply create a new RenderedValue at zoom 100% for the
* _screen_ context.
*/
cell_rv = cell_rv100 =
cell_rv100 =
rendered_value_new ((GnmCell *)cell, mstyle,
cell_rv->variable_width,
pango_layout_get_context (cell_rv->layout),
1.0);
/*
* Ah, but not so fast!
*
* If the old layout was modified by cell_calc_layout in a
* way that might affect the shape of the layout, we have
* to try that again before we recontext.
*/
if (pango_layout_get_width (cell_rv->layout) != -1) {
gint dummy_x, dummy_y;
cell_calc_layout (cell, cell_rv100, -1,
(int)(width * PANGO_SCALE),
(int)(height * PANGO_SCALE),
(int)h_center == -1 ? -1 : (int)(h_center * PANGO_SCALE),
&fore_color, &dummy_x, &dummy_y);
}
cell_rv = cell_rv100;
}
/* Now pretend it was made for printing. */
......
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