sw/source/uibase/utlui/content.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit b97f7b6bee733e108d8214d5387b2dc019d93d8f
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Wed Sep 20 21:50:23 2023 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Thu Sep 21 18:00:55 2023 +0200

    tdf#152029 Don't include frame area top margin in the bring table to
    
    attention overlay
    
    Change-Id: I13b8c09640dfc269330a3786b6449139f5f64661
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157131
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 8b77b9cc1449..44a6413072f6 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -5700,7 +5700,7 @@ void SwContentTree::BringEntryToAttention(const 
weld::TreeIter& rEntry)
                     {
                         SwTable* pTable = SwTable::FindTable(pFrameFormat);
                         if (pTable)
-                            
BringTypesWithFlowFramesToAttention({pTable->GetTableNode()});
+                            
BringTypesWithFlowFramesToAttention({pTable->GetTableNode()}, false);
                     }
             }
             else if (nType == ContentTypeId::FRAME || nType == 
ContentTypeId::GRAPHIC ||
@@ -5804,7 +5804,7 @@ void SwContentTree::BringEntryToAttention(const 
weld::TreeIter& rEntry)
                                 aNodesArr.push_back(pTable->GetTableNode());
                         }
                 }
-                BringTypesWithFlowFramesToAttention(aNodesArr);
+                BringTypesWithFlowFramesToAttention(aNodesArr, false);
             }
             else if (nType == ContentTypeId::FRAME || nType == 
ContentTypeId::GRAPHIC ||
                      nType == ContentTypeId::OLE)
@@ -6033,7 +6033,8 @@ void SwContentTree::BringBookmarksToAttention(const 
std::vector<OUString>& rName
 }
 
 void SwContentTree::BringTypesWithFlowFramesToAttention(const 
std::vector<const SwNode*>& rNodes,
-                                                        const bool 
bIncludeTopMargin){
+                                                        const bool 
bIncludeTopMargin)
+{
     std::vector<basegfx::B2DRange> aRanges;
     for (const auto* pNode : rNodes)
     {

Reply via email to