summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-01-05 08:40:24 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-01-07 21:04:30 +0100
commitc5f72002d186f2d195361541b5f3a6b0299f0683 (patch)
tree4b4a3f9b8cda513154ba6b3bc43328c029ea0d38
parent8229d5af3f7bc67366d70343f083d369b7c15274 (diff)
Remove misleading comment and simplify boundary check
Change-Id: I115bb1cd1be9c7c544508d1328248ebf3ad0d225
-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)
{