Commit 9278f56f authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix printing and preview of graph only sheets. [#616475]

2010-04-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* gnumeric.doap: add e-mail address
	* src/print.c (print_page): graphs on graph sheets always take
	  the whole space, no need to center
parent 5d1b0ff7
2010-04-21 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* gnumeric.doap: add e-mail address
* src/print.c (print_page): graphs on graph sheets always take
the whole space, no need to center
2010-04-21 Morten Welinder <terra@gnome.org>
* src/xml-sax-read.c (xml_sax_cell_content): Handle empty strings.
......
......@@ -2,6 +2,7 @@ Gnumeric 1.10.3
Andreas:
* Fix CHITEST for rectangular ranges. [#615920]
* Fix printing and preview of graph only sheets. [#616475]
Jean
* Implement graph only sheets. [#158170]
......
......@@ -30,6 +30,7 @@
<maintainer>
<foaf:Person>
<foaf:name>Andreas J. Guelzow</foaf:name>
<foaf:mbox rdf:resource="mailto:aguelzow pyrshep.ca" />
<gnome:userid>guelzow</gnome:userid>
</foaf:Person>
</maintainer>
......
......@@ -496,6 +496,15 @@ print_page (GtkPrintOperation *operation,
/* setting up content area */
cairo_save (cr);
cairo_translate (cr, sheet->text_is_rtl ? width : 0, edge_to_below_header - header);
if (sheet->sheet_type == GNM_SHEET_OBJECT) {
SheetObject *so = (SheetObject *) sheet->sheet_objects->data;
if (so) {
cairo_scale (cr, px, py);
sheet_object_draw_cairo_sized (so, cr, width, height);
}
} else {
if (pinfo->center_horizontally == 1 || pinfo->center_vertically == 1) {
double shift_x = 0;
double shift_y = 0;
......@@ -508,12 +517,6 @@ print_page (GtkPrintOperation *operation,
}
cairo_scale (cr, px, py);
if (sheet->sheet_type == GNM_SHEET_OBJECT) {
SheetObject *so = (SheetObject *) sheet->sheet_objects->data;
if (so)
sheet_object_draw_cairo_sized (so, cr, width, height);
} else {
/* printing column and row headers */
if (sheet->print_info->print_titles) {
......
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