1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00

Merge pull request #347 from j2doll/j2doll/issue204

issue 204 customHeight
This commit is contained in:
Jay Two 2024-08-09 15:43:58 +09:00 committed by GitHub
commit 8212c68ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2285,7 +2285,11 @@ void WorksheetPrivate::loadXmlSheetData(QXmlStreamReader &reader)
if (attributes.hasAttribute(QLatin1String("customHeight"))) {
info->customHeight =
attributes.value(QLatin1String("customHeight")) == QLatin1String("1");
// attributes.value(QLatin1String("customHeight")) == QLatin1String("1");
( attributes.value(QLatin1String("customHeight")) == QLatin1String("1") ||
attributes.value(QLatin1String("customHeight")) == QLatin1String("true") );
// issue 204 Gorazd
// Row height is only specified when customHeight is set
if (attributes.hasAttribute(QLatin1String("ht"))) {
info->height = attributes.value(QLatin1String("ht")).toDouble();