summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-08-28 16:24:59 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-08-28 21:34:52 +0200
commit4b82652c4de94db553dfd7a63801ea81d366315a (patch)
treedcca27357cb13c519cc0e93456bea0ffe63121d9 /oox
parentd34dafd7902e54d508d34b19b7e4d8a0662ef20c (diff)
tdf#118169: ActiveX form control saved incorrectly with accented letters
Write out unicode strings without any compression. Change-Id: I93cadc40bacbd679724c3404fd870cba48065650 Reviewed-on: https://gerrit.libreoffice.org/78234 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/axbinarywriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/ole/axbinarywriter.cxx b/oox/source/ole/axbinarywriter.cxx
index 89d2dc25351a..400e6fbde551 100644
--- a/oox/source/ole/axbinarywriter.cxx
+++ b/oox/source/ole/axbinarywriter.cxx
@@ -144,8 +144,8 @@ void AxBinaryPropertyWriter::writePairProperty( AxPairData& orPairData )
void AxBinaryPropertyWriter::writeStringProperty( OUString& orValue )
{
- sal_uInt32 nSize = orValue.getLength();
- setFlag( nSize, AX_STRING_COMPRESSED );
+ sal_uInt32 nSize = orValue.getLength() * 2;
+ setFlag( nSize, AX_STRING_COMPRESSED, false );
maOutStrm.writeAligned< sal_uInt32 >( nSize );
maLargeProps.push_back( ComplexPropVector::value_type( new StringProperty( orValue, nSize ) ) );
startNextProperty();