This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch odf13-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 0ffff0c9e8c1eff98491e619380621389ef3a75d
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 30 15:39:35 2026 -0400

    xmloff: Write style:layout-grid-snap-to-characters outside the ODF 1.2 and 
1.3 modes
---
 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 4da851851f..631096c8e3 100644
--- a/main/xmloff/source/style/PageMasterExportPropMapper.cxx
+++ b/main/xmloff/source/style/PageMasterExportPropMapper.cxx
@@ -536,10 +536,10 @@ void XMLPageMasterExportPropMapper::ContextFilter(
                        lcl_RemoveState(pPMGridSnapTo);
        }
 
-       // ODF 1.2 calls it style:layout-grid-snap-to; older modes keep the old 
name
+       // ODF 1.2 calls it style:layout-grid-snap-to; the other modes keep the 
old name, which released versions read
        if( pPMGridSnapToChars && pPMGridSnapTo )
        {
-               if( SvtSaveOptions().GetODFDefaultVersion() >= 
SvtSaveOptions::ODFVER_012 )
+               if( SvtSaveOptions::IsODFStrict( 
SvtSaveOptions().GetODFDefaultVersion() ) )
                        lcl_RemoveState( pPMGridSnapToChars );
                else
                        lcl_RemoveState( pPMGridSnapTo );

Reply via email to