Apache OpenOffice (AOO) Bugzilla – Issue 51625
one cell in a writer table is not selected
Last modified: 2013-02-24 21:06:34 UTC
to reproduce, insert a table in the document and execute: xText = ThisComponent.getText() xSelectionSupplier = ThisComponent.getCurrentController() xEnum = xText.createEnumeration() xTextTable = xEnum.nextElement() xCellRange = xTextTable.getCellRangeByName("A1:A1") xSelectionSupplier.select(xCellRange) This works, if more than one cell is used, e.g. "A1:B1".
.
Alright, reproduced for both 680 and 645 builds. Can we still get a possible fix in 1.1.5 possibly? (tl?)
Created attachment 27785 [details] Sample document with macro
TL->FME: The problem is in SwCrsrShell::UpdateCrsr we need to pass the if statement : if( ( pTstCrsr->HasMark() && : pDoc->IsIdxInTbl( pTstCrsr->GetPoint()->nNode ) && : ( pTblCrsr || : pTstCrsr->GetNode( TRUE )->FindStartNode() != : pTstCrsr->GetNode( FALSE )->FindStartNode() )) : ) then everything will be fine. In order for this we need a function the explicitly fills 'pTblCrsr' member with the correct values. Please take over thanks!
retarget to Office later: too much rework needed for the fix.