Merge pull request #320 from sukoi26/SheetFormatPr

SheetformatPr issue #287
This commit is contained in:
Thomas Fussell 2018-07-24 23:42:51 -04:00 committed by GitHub
commit 94faf01b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -40,9 +40,9 @@ public:
optional<double> base_col_width;
/// <summary>
/// The default row height
/// The default row height is required
/// </summary>
optional<double> default_row_height;
double default_row_height = 15.0;
/// <summary>
/// The default column width

View File

@ -2353,11 +2353,9 @@ void xlsx_producer::write_worksheet(const relationship &rel)
write_attribute("defaultColWidth",
format_properties.default_column_width.get());
}
if (format_properties.default_row_height.is_set())
{
write_attribute("defaultRowHeight",
format_properties.default_row_height.get());
}
write_attribute("defaultRowHeight",
format_properties.default_row_height);
if (format_properties.dy_descent.is_set())
{