mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
bug introduce by the commit continue work on #230, improves style/xf handling
as the style exist it is rewritten in cellStyleXfs and cellXfs, with the fillId test for format and style. remove the test and use only the format.
This commit is contained in:
parent
c4a2bb8c6d
commit
4a3e711a1b
|
@ -1321,14 +1321,7 @@ void xlsx_producer::write_styles(const relationship & /*rel*/)
|
||||||
write_attribute("numFmtId", current_format_impl.number_format_id.get());
|
write_attribute("numFmtId", current_format_impl.number_format_id.get());
|
||||||
write_attribute("fontId", current_format_impl.font_id.get());
|
write_attribute("fontId", current_format_impl.font_id.get());
|
||||||
|
|
||||||
if (current_format_impl.style.is_set())
|
write_attribute("fillId", current_format_impl.fill_id.get());
|
||||||
{
|
|
||||||
write_attribute("fillId", stylesheet.style_impls.at(current_format_impl.style.get()).fill_id.get());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
write_attribute("fillId", current_format_impl.fill_id.get());
|
|
||||||
}
|
|
||||||
|
|
||||||
write_attribute("borderId", current_format_impl.border_id.get());
|
write_attribute("borderId", current_format_impl.border_id.get());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user