QXlsx icon indicating copy to clipboard operation
QXlsx copied to clipboard

customHeight

Open gorazdr opened this issue 2 years ago • 0 comments

Hello

I found problem with parsing customHeight row attribute. Problem is with with this code: info->customHeight = attributes.value(QLatin1String("customHeight")) == QLatin1String("1");

fix is: info->customHeight = (attributes.value(QLatin1String("customHeight")) == QLatin1String("1") || attributes.value(QLatin1String("customHeight")) == QLatin1String("true")) ;

or even better info->customHeight = parseXsdBoolean(attributes.value(QLatin1String("customHeight")).toString());

In excel xml row customHeight is marked as: <row r="3" spans="1:42" s="7" customFormat="1" ht="28.5" customHeight="1" thickBot="1" x14ac:dyDescent="0.3"> but QXmlStreamReader reads that as "true" and not "1".

in xlsxworksheet.cpp there are 14 occurrences of the same problem.

Thanks, Gorazd

gorazdr avatar Mar 29 '22 08:03 gorazdr