summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/docxtablestyleexport.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/docxtablestyleexport.cxx b/sw/source/filter/ww8/docxtablestyleexport.cxx
index c88bf4bf5ecb..04f3c92c26ac 100644
--- a/sw/source/filter/ww8/docxtablestyleexport.cxx
+++ b/sw/source/filter/ww8/docxtablestyleexport.cxx
@@ -118,11 +118,9 @@ void DocxTableStyleExport::TableStyles(sal_Int32 nCountStylesToWrite)
}
if (!aTableStyles.getLength())
return;
- // HACK
- // Ms Office seems to have an internal limitation of 4091 styles
- // and refuses to load .docx with more, even though the spec seems to allow that;
- // so simply if there are more styles, don't export those
- nCountStylesToWrite = (nCountStylesToWrite > aTableStyles.getLength()) ? aTableStyles.getLength(): nCountStylesToWrite;
+
+ if (nCountStylesToWrite > aTableStyles.getLength())
+ nCountStylesToWrite = aTableStyles.getLength();
for (sal_Int32 i = 0; i < nCountStylesToWrite; ++i)
{