summaryrefslogtreecommitdiffstats
path: root/src/xlsx.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-28 09:36:38 -0300
committerAndrés <andmarti@gmail.com>2021-03-28 09:36:38 -0300
commita0f15a67c22103e7f2f4a22878ef1d64a85a13e5 (patch)
tree419dd15b51a8526673829dea97d201f221c0d9ee /src/xlsx.c
parent1d1909dbcac45cbce7031def17d4f28e56843fd9 (diff)
work on issue #218
Diffstat (limited to 'src/xlsx.c')
-rw-r--r--src/xlsx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xlsx.c b/src/xlsx.c
index b887c65..556921a 100644
--- a/src/xlsx.c
+++ b/src/xlsx.c
@@ -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;