diff options
author | Andrés <andmarti@gmail.com> | 2021-03-28 09:36:38 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-03-28 09:36:38 -0300 |
commit | a0f15a67c22103e7f2f4a22878ef1d64a85a13e5 (patch) | |
tree | 419dd15b51a8526673829dea97d201f221c0d9ee /src/xlsx.c | |
parent | 1d1909dbcac45cbce7031def17d4f28e56843fd9 (diff) |
work on issue #218
Diffstat (limited to 'src/xlsx.c')
-rw-r--r-- | src/xlsx.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -298,7 +298,11 @@ void get_sheet_data(xmlDocPtr doc, xmlDocPtr doc_strings, xmlDocPtr doc_styles) child_node->xmlChildrenNode != NULL && ! strcmp((char *) child_node->xmlChildrenNode->name, "f")) { // handle the formula if that is whats desidered!! - if (get_conf_int("xlsx_readformulas")) { + if (get_conf_int("xlsx_readformulas") && + // dont handle shared formulas right now + ! (xmlHasProp(child_node->xmlChildrenNode, (xmlChar *) "t") && + ! strcmp((char *) xmlGetProp(child_node->xmlChildrenNode, (xmlChar *) "t"), "shared")) + ) { char * formula = (char *) child_node->xmlChildrenNode->xmlChildrenNode->content; char * strf; |