Commit b16d9174 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix ODF export of files with large formatted sheets. [#634135]

2010-11-05  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* openoffice-write.c (odf_write_sheet): get the correct extent
	Fixes [#634135]
parent 37aa581c
......@@ -12,6 +12,7 @@ Andreas:
* Add menu items to remove and add manual page breaks.
* Improve the sc import.
* Fix button sensitivity in sort dialog. [#632999]
* Fix ODF export of files with large formatted sheets. [#634135]
Hans de Goede:
* Fix import of dib format images in XLS. [#553098]
......
2010-11-05 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* openoffice-write.c (odf_write_sheet): get the correct extent
Fixes [#634135]
2010-10-04 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* openoffice-read.c (od_draw_control_start): use oc->as_index
......
......@@ -3279,24 +3279,12 @@ odf_write_sheet (GnmOOExport *state)
int max_rows = gnm_sheet_get_max_rows (sheet);
GnmStyle **col_styles = g_new0 (GnmStyle *, max_cols);
GnmRange extent, style_extent;
int i;
GSList *sheet_merges = NULL;
GnmPageBreaks *pb = sheet->print_info->page_breaks.v;
extent = sheet_get_extent (sheet, FALSE);
/* include collapsed or hidden cols and rows */
for (i = max_rows ; i-- > extent.end.row ; )
if (!colrow_is_empty (sheet_row_get (sheet, i))) {
extent.end.row = i;
break;
}
for (i = max_cols ; i-- > extent.end.col ; )
if (!colrow_is_empty (sheet_col_get (sheet, i))) {
extent.end.col = i;
break;
}
style_extent = extent;
/* We only want to get the common column style */
sheet_style_get_extent (sheet, &style_extent, col_styles);
/* ODF does not allow us to mark soft page breaks between columns */
......
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