[Libreoffice-commits] core.git: svx/source
Gokul
gswaminathan at kacst.edu.sa
Sat Feb 9 03:28:24 PST 2013
svx/source/table/tablecontroller.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit a00b62422e5499e842d0b3b6302ba79f3d808c27
Author: Gokul <gswaminathan at kacst.edu.sa>
Date: Sat Feb 2 15:29:56 2013 +0300
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 at kacst.edu.sa>
Tested-by: Ahmad Harthi <aalharthi at kacst.edu.sa>
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 9368675..e0a7ce7 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 )
More information about the Libreoffice-commits
mailing list