Skip to content

Commit

Permalink
fix issue qax-os#290
Browse files Browse the repository at this point in the history
  • Loading branch information
peiqi111 committed Nov 8, 2018
1 parent 2aca340 commit ef334ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,13 @@ func (f *File) GetCellFormula(sheet, axis string) string {
if xlsx.SheetData.Row[k].R == row {
for i := range xlsx.SheetData.Row[k].C {
if axis == xlsx.SheetData.Row[k].C[i].R {
if xlsx.SheetData.Row[k].C[i].F == nil {
continue
}
if xlsx.SheetData.Row[k].C[i].F.T == STCellFormulaTypeShared {
return getSharedForumula(xlsx, xlsx.SheetData.Row[k].C[i].F.Si)
}
if xlsx.SheetData.Row[k].C[i].F != nil {
return xlsx.SheetData.Row[k].C[i].F.Content
}
return xlsx.SheetData.Row[k].C[i].F.Content
}
}
}
Expand Down

0 comments on commit ef334ee

Please sign in to comment.