sw/source/filter/ww8/wrtw8sty.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5a1a3f0ca3c585cccd88c82871b78f96d79955ff
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Jan 20 11:41:06 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Jan 20 11:35:57 2023 +0000

    tdf#153094: it seems that DOC requires WW8_RESERVED_SLOTS = 15
    
    Regression from commit a2a08463e0299d514e6e555ae61c68bb0e4348d0,
    where I mistakenly assumed that the value is just to accommodate
    enough entries. I don't know where it's documented, but this
    fixes the bug.
    
    Change-Id: Ifecf5d294222e3a40cb23f7c147694dbdf35e405
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145869
    Tested-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145889

diff --git a/sw/source/filter/ww8/wrtw8sty.cxx 
b/sw/source/filter/ww8/wrtw8sty.cxx
index 7900bd1ba3c8..b2b84295e504 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -122,7 +122,7 @@ public:
 //  Styles
 
 // Immediately after reserved slots, character styles begin
-#define WW8_RESERVED_SLOTS 10
+#define WW8_RESERVED_SLOTS 15 // tdf#153094: the value is important
 
 // GetId( SwCharFormat ) for use in text -> zero is not allowed,
 // use "Default Char Style" instead

Reply via email to