Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Fix conditional style fills
Browse files Browse the repository at this point in the history
resolves issue 147: #147
  • Loading branch information
natergj committed Nov 25, 2017
1 parent 3a52197 commit e081a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ Style Options Object:
outline: boolean
},
fill: { // §18.8.20 fill (Fill)
type: string, // Currently only 'pattern' is implimented. Non-implimented option is 'gradient'
type: string, // Currently only 'pattern' is implemented. Non-implemented option is 'gradient'
patternType: string, //§18.18.55 ST_PatternType (Pattern Type)
bgColor: string // HTML style hex value. optional. defaults to black
fgColor: string // HTML style hex value. required.
bgColor: string // HTML style hex value. defaults to black
fgColor: string // HTML style hex value. defaults to black.
},
numberFormat: integer or string // §18.8.30 numFmt (Number Format)
});
Expand Down
2 changes: 1 addition & 1 deletion source/lib/style/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class Style {
}

if (this.fill instanceof Fill) {
this.fill.addToXMLele(thisEle);
this.fill.addToXMLele(thisEle.ele('fill'));
}

if (this.alignment instanceof Alignment) {
Expand Down

0 comments on commit e081a88

Please sign in to comment.