You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2026/10/23 17:40:13 UTC
(openoffice) 02/08: xmloff: write style:layout-grid-snap-to in default mode
This is an automated email from the ASF dual-hosted git repository.
jimjag pushed a commit to branch odf-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 35f2eead9ed21dd693b6fb1b23d5cdf24e9c3fca
Author: Jim Jagielski <ji...@gmail.com>
AuthorDate: Fri Oct 23 13:40:01 2026 -0400
xmloff: write style:layout-grid-snap-to in default mode
---
main/xmloff/source/style/PageMasterExportPropMapper.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main/xmloff/source/style/PageMasterExportPropMapper.cxx b/main/xmloff/source/style/PageMasterExportPropMapper.cxx
index 80e1c19bd3..d5dce1806f 100644
--- a/main/xmloff/source/style/PageMasterExportPropMapper.cxx
+++ b/main/xmloff/source/style/PageMasterExportPropMapper.cxx
@@ -535,10 +535,10 @@ void XMLPageMasterExportPropMapper::ContextFilter(
lcl_RemoveState(pPMGridSnapTo);
}
- // ODF 1.2 calls it style:layout-grid-snap-to; strict mode writes only that name
+ // ODF 1.2 calls it style:layout-grid-snap-to; older modes keep the old name
if( pPMGridSnapToChars && pPMGridSnapTo )
{
- if( SvtSaveOptions().GetODFDefaultVersion() == SvtSaveOptions::ODFVER_012 )
+ if( SvtSaveOptions().GetODFDefaultVersion() >= SvtSaveOptions::ODFVER_012 )
lcl_RemoveState( pPMGridSnapToChars );
else
lcl_RemoveState( pPMGridSnapTo );