sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1cc2e48de00baafe4667f1dbfe0d59869c9570c9
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Apr 30 13:27:57 2025 +0000
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue May 20 08:21:25 2025 +0200

    Navigator: fix change detection
    
    Navigator was marked as changed even if no node was modified.
    After changing eg. bulet list (not header) which is not visible in
    navigator - we got messages. This is caused by wrong condition:
    "invisible" has to match with "sensitive" to be different state
    
    Change-Id: I622d69f9d3cfcec8724d87e18a7897660e8e2670
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184834
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185508
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index f41fe06ac9f5..4afcecf265b4 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3815,7 +3815,7 @@ bool SwContentTree::HasContentChanged()
 
                     const SwContent* pCnt = pArrType->GetMember(j);
 
-                    if (pCnt->IsInvisible() != 
m_xTreeView->get_sensitive(*xEntry, 0))
+                    if (pCnt->IsInvisible() == 
m_xTreeView->get_sensitive(*xEntry, 0))
                     {
                         bContentChanged = true;
                         break;

Reply via email to