diff options
author | László Németh <nemeth@numbertext.org> | 2022-10-11 14:10:37 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2022-10-12 10:16:49 +0200 |
commit | 0140fd6501c2322cffddaaa14b49137009ffcae4 (patch) | |
tree | 735d43786a68242a64c679215eeee46216f159d5 /sw/source | |
parent | 5f88c66b835718c5cc5f07d21825a5ac6880e458 (diff) |
tdf#151478 sw: fix row/column selection at nested table
Table->Select->Row (.uno:EntireRow) and
Table->Select->Column (.uno:EntireColumn) didn't
work, when the last cell of the row or column starts
with a nested table.
Change-Id: I31e2fdebb226911921fb727f58c03101c01a07b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141224
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/trvltbl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index e212553c5844..0aaa899b5a46 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -233,8 +233,8 @@ bool SwCursorShell::SelTableRowOrCol( bool bRow, bool bRowSimple ) m_pTableCursor->DeleteMark(); // set start and end of a column - m_pTableCursor->GetPoint()->Assign( *pEnd->GetSttNd() ); - m_pTableCursor->Move( fnMoveForward, GoInContent ); + m_pTableCursor->GetPoint()->Assign( *pEnd->GetSttNd()->EndOfSectionNode() ); + m_pTableCursor->Move( fnMoveBackward, GoInContent ); m_pTableCursor->SetMark(); m_pTableCursor->GetPoint()->Assign( *pStt->GetSttNd()->EndOfSectionNode() ); m_pTableCursor->Move( fnMoveBackward, GoInContent ); |