[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 15 07:40:15 UTC 2021


 writerfilter/source/dmapper/DomainMapper.cxx |    2 +-
 writerfilter/source/filter/WriterFilter.cxx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c6695a4aabeaae99174b7658f2b813788ecff7f0
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Jul 15 08:53:14 2021 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Jul 15 09:39:39 2021 +0200

    writerfilter: improve comments around compat flags
    
    Make it more explicit which list is shared and which list is DOCX-only.
    
    See <https://gerrit.libreoffice.org/c/core/+/118960/3#message-09a4a96aa2d09e2182dac80bb4857a875155fff9>.
    
    Change-Id: I287dfe799eb8597ca0a8ad65ec677d8da79bf1e4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118966
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 5f179de3a595..a3e8b0009c43 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -219,7 +219,7 @@ DomainMapper::~DomainMapper()
         }
 
 
-        // Apply the document settings after everything else
+        // Apply the document settings for both DOCX and RTF after everything else
         m_pImpl->GetSettingsTable()->ApplyProperties( m_pImpl->GetTextDocument( ) );
 
         // now that importing is finished, re-enable default styles for any that were never defined/imported.
diff --git a/writerfilter/source/filter/WriterFilter.cxx b/writerfilter/source/filter/WriterFilter.cxx
index 2d20ab1ef0c3..0d9326c41fe0 100644
--- a/writerfilter/source/filter/WriterFilter.cxx
+++ b/writerfilter/source/filter/WriterFilter.cxx
@@ -299,7 +299,7 @@ void WriterFilter::setTargetDocument(const uno::Reference<lang::XComponent>& xDo
 {
     m_xDstDoc = xDoc;
 
-    // Set some compatibility options that are valid for all the formats
+    // Set some compatibility options that are valid for the DOCX format
     uno::Reference<lang::XMultiServiceFactory> xFactory(xDoc, uno::UNO_QUERY);
     uno::Reference<beans::XPropertySet> xSettings(
         xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY);


More information about the Libreoffice-commits mailing list