summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-14 11:20:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-14 16:10:20 +0200
commitae0e7e3918284c31a91acca0f733919926ae3a62 (patch)
treec23d0a76fdf2fdaa73b7c352428d7dd6deb723bb
parent590323f4235e5ec3de2dc6dee28a4f03288ac6d7 (diff)
tdf#141812 keep focus in an impress table cell when row/col deleted
Change-Id: I3b396ba92039bad657ca159002598a271b68a79d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133008 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svx/source/table/tablecontroller.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 3a60e5c773ac..8ef76acd377e 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -827,6 +827,7 @@ void SvxTableController::onDelete( sal_uInt16 nSId )
{
Reference< XTableColumns > xCols( mxTable->getColumns() );
xCols->removeByIndex( aStart.mnCol, nRemovedColumns );
+ EditCell(aStart, nullptr, TblAction::NONE);
}
break;
}
@@ -842,6 +843,7 @@ void SvxTableController::onDelete( sal_uInt16 nSId )
{
Reference< XTableRows > xRows( mxTable->getRows() );
xRows->removeByIndex( aStart.mnRow, nRemovedRows );
+ EditCell(aStart, nullptr, TblAction::NONE);
}
break;
}