svx/source/gallery2/galleryfilestorage.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 1d939b782235a62c965a4c8309869796b5838acf
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Sun Nov 5 01:26:46 2023 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Sun Nov 5 21:21:27 2023 +0100

    reprobuild: don't write nondeterministic textencoding
    
    No need to write this legacy int16, that we ignore on read anyway.
    
    Change-Id: I5ee071aa0562b8e2718a1a83dffc543c9a104360
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158942
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/svx/source/gallery2/galleryfilestorage.cxx 
b/svx/source/gallery2/galleryfilestorage.cxx
index 1838520ec60a..e9a8cd0aa8b6 100644
--- a/svx/source/gallery2/galleryfilestorage.cxx
+++ b/svx/source/gallery2/galleryfilestorage.cxx
@@ -697,7 +697,8 @@ SvStream& GalleryFileStorage::writeGalleryTheme(SvStream& 
rOStm, const GalleryTh
     rOStm.WriteUInt16(0x0004);
     write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStm, pThm->GetThemeName(),
                                                  RTL_TEXTENCODING_UTF8);
-    rOStm.WriteUInt32(nCount).WriteUInt16(osl_getThreadTextEncoding());
+    rOStm.WriteUInt32(nCount);
+    rOStm.WriteUInt16(RTL_TEXTENCODING_UTF8); // unused on reading
 
     for (sal_uInt32 i = 0; i < nCount; i++)
     {

Reply via email to