sw/source/core/frmedt/fetab.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit e5986baa983e1c7b5e07c45299fd84be2c230fbe Author: László Németh <[email protected]> AuthorDate: Fri Dec 9 13:44:21 2022 +0100 Commit: László Németh <[email protected]> CommitDate: Fri Dec 9 15:12:51 2022 +0000 tdf#150578 sw track changes: fix table toolbar at row deletion In Hide Changes mode with enabled change tracking, table row deletion disabled the table toolbar, so it wasn't possible to repeat the click on the toolbar deleting multiple rows row by row. Follow-up to commit 16c705ec0d1ab4b4428577ccb0ea3fc14ee0fc88 "tdf#148849 sw: fix cursor pos at tracked DeleteRow in Hide Changes". Change-Id: I297bae405cb24f7090144344947c01a1dadf9261 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143876 Tested-by: Jenkins Reviewed-by: László Németh <[email protected]> diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index 19bee641b2cf..3c0c5a4848a7 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -520,7 +520,11 @@ bool SwFEShell::DeleteRow(bool bCompleteTable) pPam->SetMark(); // both want something pPam->DeleteMark(); if ( SwWrtShell* pWrtShell = dynamic_cast<SwWrtShell*>(this) ) + { pWrtShell->UpdateCursor(); + // tdf#150578 enable the disabled table toolbar by (zero) cursor moving + pWrtShell->Right( SwCursorSkipMode::Chars, false, 0, false ); + } EndUndo(bCompleteTable ? SwUndoId::UI_TABLE_DELETE : SwUndoId::ROW_DELETE); return true;
