Skip to content

Commit

Permalink
Fixed conditional format corrupting sheet #1305 (#1574)
Browse files Browse the repository at this point in the history
Co-authored-by: Siemienik Pawel <siemienik.pawel@gmail.com>
  • Loading branch information
rolandostar and Siemienik committed Apr 11, 2021
1 parent 9005aa7 commit 2ab468b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/xlsx/xform/style/dxf-xform.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ class DxfXform extends BaseXform {
render(xmlStream, model) {
xmlStream.openNode(this.tag);

if (model.alignment) {
this.map.alignment.render(xmlStream, model.alignment);
if (model.font) {
this.map.font.render(xmlStream, model.font);
}
if (model.border) {
this.map.border.render(xmlStream, model.border);
if (model.numFmt) {
this.map.numFmt.render(xmlStream, model.numFmt);
}
if (model.fill) {
this.map.fill.render(xmlStream, model.fill);
}
if (model.font) {
this.map.font.render(xmlStream, model.font);
if (model.alignment) {
this.map.alignment.render(xmlStream, model.alignment);
}
if (model.numFmt) {
this.map.numFmt.render(xmlStream, model.numFmt);
if (model.border) {
this.map.border.render(xmlStream, model.border);
}
if (model.protection) {
this.map.protection.render(xmlStream, model.protection);
Expand Down

0 comments on commit 2ab468b

Please sign in to comment.