summaryrefslogtreecommitdiff
path: root/sd/qa/unit/tiledrendering
diff options
context:
space:
mode:
authormerttumer <mert.tumer@collabora.com>2021-04-15 11:21:01 +0300
committerMert Tumer <mert.tumer@collabora.com>2021-05-03 06:51:22 +0200
commit3ba86ee82a2d0c2d8cac3c7ee83e2c5f0a3c291e (patch)
tree0e937e573eebf620441bd29640b27f1e67c0f465 /sd/qa/unit/tiledrendering
parent9c930c4f3109d123c0831d0fcecf9c8b32e5bbc7 (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/qa/unit/tiledrendering')
-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 55d724a6a069..c9dbbd74fa14 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -1453,8 +1453,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()