writerfilter/source/dmapper/DomainMapper_Impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4da11a5d39ccd9f59e326011d4de7ffee8a71d10
Author:     Satya <skompe...@opentext.com>
AuthorDate: Fri Jun 16 10:30:02 2023 +0530
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Fri Jun 16 16:45:18 2023 +0200

    tdf#155736 replaced m_bStartTOC condition with a method IsInTOC()
    
    Modified IsInTOC() method and refactored usage of m_bStartTOC with 
IsInTOC() in the previous commit,but m_bStartTOC is still used at one place and 
now which is replacing with IsInTOC() to maintain consistency.
    
    Change-Id: I7fe50770741d68d9db35d74e138417728c2e3dec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153165
    Reviewed-by: Justin Luth <jl...@mail.com>
    Tested-by: Justin Luth <jl...@mail.com>

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx 
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 8b5cf8b6e049..a67bc5f5b092 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -3008,7 +3008,7 @@ void DomainMapper_Impl::appendTextPortion( const 
OUString& rString, const Proper
         }
         else
         {
-            if (m_bStartTOC || m_bStartIndex || m_bStartBibliography || 
m_nStartGenericField != 0)
+            if (IsInTOC() || m_bStartIndex || m_bStartBibliography || 
m_nStartGenericField != 0)
             {
                 if (IsInHeaderFooter() && !m_bStartTOCHeaderFooter)
                 {

Reply via email to