From 1766e7cec42115b0d8678ed6b1940a7085f71eff Mon Sep 17 00:00:00 2001 From: maokexu Date: Tue, 21 Jan 2025 13:58:34 +0800 Subject: [PATCH] If there is no ht, then the property of customHeight is false --- QXlsx/source/xlsxworksheet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QXlsx/source/xlsxworksheet.cpp b/QXlsx/source/xlsxworksheet.cpp index 9f692f94..7754a19d 100644 --- a/QXlsx/source/xlsxworksheet.cpp +++ b/QXlsx/source/xlsxworksheet.cpp @@ -2278,6 +2278,10 @@ void WorksheetPrivate::loadXmlSheetData(QXmlStreamReader &reader) // Row height is only specified when customHeight is set if (attributes.hasAttribute(QLatin1String("ht"))) { info->height = attributes.value(QLatin1String("ht")).toDouble(); + } + else + { + info->customHeight = false; } }