summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokul <gswaminathan@kacst.edu.sa>2013-02-02 15:29:56 +0300
committerAhmad Harthi <aalharthi@kacst.edu.sa>2013-02-09 11:28:05 +0000
commita00b62422e5499e842d0b3b6302ba79f3d808c27 (patch)
treed3a86fc01b42d8176ae738834ecf39d0ac50dd27
parent65e0bf7c4760c51b2357d9c57dd23e6c61b116cb (diff)
Fixes fdo#46186, The Table Remains in the defined writing mode.
The table in impress is drawn under the rectangular are, on Selecting the table it was only selecting the rectangular area and not the cells inside, Making the layout to be as RTL which was mirroring the table. But, We need the table to be in RTL Writing mode and not mirroring the table. Now on applying my patch, If table is selected, it will select the entire cells inside which is the actual table and the functionality works fine. Change-Id: I9d6bdde5019322488be66fa89a6488d348b2cf44 Reviewed-on: https://gerrit.libreoffice.org/1964 Reviewed-by: Ahmad Harthi <aalharthi@kacst.edu.sa> Tested-by: Ahmad Harthi <aalharthi@kacst.edu.sa>
-rw-r--r--svx/source/table/tablecontroller.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 93686759c087..e0a7ce70d8a8 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -366,6 +366,13 @@ void SvxTableController::onSelectionHasChanged()
const SdrMarkList& rMarkList= mpView->GetMarkedObjectList();
if( rMarkList.GetMarkCount() == 1 )
bSelected = mxTableObj.get() == rMarkList.GetMark(0)->GetMarkedSdrObj();
+ /* fdo#46186 Selecting the table means selecting the entire cells */
+ if(!hasSelectedCells())
+ {
+ maCursorFirstPos = pTableObj->getFirstCell();
+ maCursorLastPos = pTableObj->getLastCell();
+ mbCellSelectionMode=true;
+ }
}
if( bSelected )