sw/source/uibase/dbui/dbmgr.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c5d16f0409e02d6e8bafb8ad58add5a115d13fb7
Author:     Henry Castro <[email protected]>
AuthorDate: Tue Sep 30 06:39:41 2025 -0400
Commit:     Michael Stahl <[email protected]>
CommitDate: Tue Sep 30 13:56:04 2025 +0200

    sw: invalidate UI layout on database merge
    
    When navigating database records, the merge action should invalidate
    the layout to trigger a repaint if a conditional section is hidden.
    
    Change-Id: I405589ef8f915778c6ebe442560759d992dbb2be
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191660
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 4590c401f156..4661ce05ae74 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -543,10 +543,12 @@ bool SwDBManager::Merge( const SwMergeDescriptor& 
rMergeDesc )
     switch(rMergeDesc.nMergeType)
     {
         case DBMGR_MERGE:
+            pWorkShell->LockPaint(LockPaintReason::InvalidateLayout);
             pWorkShell->StartAllAction();
             pWorkShell->SwViewShell::UpdateFields( true );
             pWorkShell->SetModified();
             pWorkShell->EndAllAction();
+            pWorkShell->UnlockPaint();
             break;
 
         case DBMGR_MERGE_PRINTER:

Reply via email to