sw/source/writerfilter/dmapper/DomainMapperTableHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4f1ca2f852b3be5af2891294e9079147516b22ce Author: Justin Luth <[email protected]> AuthorDate: Tue Jan 6 21:57:29 2026 -0500 Commit: Justin Luth <[email protected]> CommitDate: Wed Jan 7 15:24:29 2026 +0100 writerfilter: simplify compatibilityMode < 15 test There isn't anything special about compatibilityMode 0 (other than it doesn't exist, but neither do 1-10) so just simplify this. This just started with a lazy way of checking for non -1 AFAICS. if ( nMode > 0 && nMode <= 14 && rInfo.nNestLevel == 1 ) in commit 9a31d1c83e08600507689dc18f6f0973bc7e4389 Change-Id: I31cc3e6dd03f202c4b4c552f6705c41f9d25a2ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196647 Tested-by: Jenkins Reviewed-by: Justin Luth <[email protected]> diff --git a/sw/source/writerfilter/dmapper/DomainMapperTableHandler.cxx b/sw/source/writerfilter/dmapper/DomainMapperTableHandler.cxx index 9d0df3dbf5f1..8452e6993e83 100644 --- a/sw/source/writerfilter/dmapper/DomainMapperTableHandler.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapperTableHandler.cxx @@ -603,7 +603,7 @@ TableStyleSheetEntry * DomainMapperTableHandler::endTableGetTableStyle(TableInfo // the default behavior when DOCX doesn't define "compatibilityMode" option is to add the cell spacing // but not for RTF - if (m_rDMapper_Impl.IsOOXMLImport() && (nMode < 0 || (0 < nMode && nMode <= 14)) && rInfo.nNestLevel == 1) + if (m_rDMapper_Impl.IsOOXMLImport() && nMode < 15 && rInfo.nNestLevel == 1) { const sal_Int32 nMinLeftBorderDistance = aLeftBorder.LineWidth / 2; sal_Int32 nLeftBorderDistance = rInfo.nLeftBorderDistance;
