diff --git a/QXlsx/source/xlsxworksheet.cpp b/QXlsx/source/xlsxworksheet.cpp index 9f692f94..056b0210 100644 --- a/QXlsx/source/xlsxworksheet.cpp +++ b/QXlsx/source/xlsxworksheet.cpp @@ -520,7 +520,7 @@ QVariant Worksheet::read(int row, int column) const if (!cell) return QVariant(); - if (cell->hasFormula()) { + if (cell->hasFormula() && d->showFormulas) { if (cell->formula().formulaType() == CellFormula::NormalType) { return QVariant(QLatin1String("=") + cell->formula().formulaText()); } else if (cell->formula().formulaType() == CellFormula::SharedType) {