From e7f5650579988476e7c87213699a8e48c1cf56ee Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Tue, 15 Oct 2024 23:14:03 +0800 Subject: [PATCH] Fix cell content imported from .ods files --- Desktop/data/importers/ods/odsxmlcontentshandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Desktop/data/importers/ods/odsxmlcontentshandler.cpp b/Desktop/data/importers/ods/odsxmlcontentshandler.cpp index d96078c151..c8ddec93bb 100644 --- a/Desktop/data/importers/ods/odsxmlcontentshandler.cpp +++ b/Desktop/data/importers/ods/odsxmlcontentshandler.cpp @@ -275,7 +275,7 @@ bool ODSXmlContentsHandler::characters(const QString &ch) switch(_docDepth) { case text: - if(_currentCell != ch) + if(_currentCell.isEmpty()) // see: https://github.com/jasp-stats/jasp-issues/issues/2963 and https://github.com/jasp-stats/jasp-issues/issues/2789 _currentCell.push_back(ch); break;