summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/qa/unit/tiledrendering/tiledrendering.cxx4
-rw-r--r--svx/source/table/tablecontroller.cxx7
2 files changed, 2 insertions, 9 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()
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 68880ad34754..438ffbcb9392 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -407,13 +407,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 )