diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-08-28 16:24:59 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-08-29 11:43:01 +0200 |
commit | 761f38dbc6b5d96856414f04579c507ae390e107 (patch) | |
tree | 51388dcc3a067c91e1dec8d757789ed2d8823e1d /oox | |
parent | f4da1acd98bf3955a8011642f31880a656e7aa77 (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>
(cherry picked from commit 4b82652c4de94db553dfd7a63801ea81d366315a)
Reviewed-on: https://gerrit.libreoffice.org/78238
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ole/axbinarywriter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/ole/axbinarywriter.cxx b/oox/source/ole/axbinarywriter.cxx index d0e0c556e975..aa01666e9903 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(); |