summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authormerttumer <mert.tumer@collabora.com>2021-04-15 11:21:01 +0300
committerAndras Timar <andras.timar@collabora.com>2021-05-16 23:47:24 +0200
commite6e846a38f6433c84f113cedbbecedea44edc1fa (patch)
tree7d1277724ec6e7e41b4517269510e5f9d67a8c3e /sd
parent95ae128ec3477cb225dfe0c69b69cf1a8a51c907 (diff)
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/+/114643 Tested-by: Jenkins
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/tiledrendering/tiledrendering.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx
index 21a67f89a4ec..3a8553ae48b6 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -1456,8 +1456,8 @@ void SdTiledRenderingTest::testTdf118354()
Scheduler::ProcessEventsToIdle();
SdrView* pView = pViewShell->GetView();
- rtl::Reference<sdr::SelectionController> xSelectionController(pView->getSelectionController());
- CPPUNIT_ASSERT(xSelectionController->hasSelectedCells());
+ auto pMarkedObj = dynamic_cast<sdr::table::SdrTableObj*>(pView->GetMarkedObjectByIndex(0));
+ CPPUNIT_ASSERT_EQUAL(pMarkedObj, pTableObject);
}
void SdTiledRenderingTest::testPostKeyEventInvalidation()