summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormerttumer <mert.tumer@collabora.com>2021-04-15 11:21:01 +0300
committerAndras Timar <andras.timar@collabora.com>2021-06-15 09:17:59 +0200
commitebe0ba78ca7f6767351023a93fd03a0f336c4189 (patch)
treeda4f07688c1913d54176c703d713ddfc1edea617
parentvcl: check mpWindowImpl before referencing it (diff)
downloadcore-ebe0ba78ca7f6767351023a93fd03a0f336c4189.tar.gz
core-ebe0ba78ca7f6767351023a93fd03a0f336c4189.zip
Fix ESC key selects all the cells of the table object
Selecting the table should not necessarily mean selecting all the cells. If all the cells are selected which ESC key does the same thing, it is impossible to delete the table with the delete key, only after an input following by an ESC deleselects them and deleting becomes possible. Change-Id: I33f182d330f1cbc411d47b86098a4aea544a90ae Signed-off-by: merttumer <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114128 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117188 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--svx/source/table/tablecontroller.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 43c74993961b..e4183878c637 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -399,13 +399,6 @@ void SvxTableController::onSelectionHasChanged()
const SdrMarkList& rMarkList= mrView.GetMarkedObjectList();
if( rMarkList.GetMarkCount() == 1 )
bSelected = mxTableObj.get() == rMarkList.GetMark(0)->GetMarkedSdrObj();
- /* fdo#46186 Selecting the table means selecting the entire cells */
- if (!hasSelectedCells() && pTableObj)
- {
- maCursorFirstPos = SdrTableObj::getFirstCell();
- maCursorLastPos = pTableObj->getLastCell();
- mbCellSelectionMode=true;
- }
}
if( bSelected )