Apache OpenOffice (AOO) Bugzilla – Issue 23386
API: sw.SwXTableColumns::XTableColumns
Last modified: 2013-02-24 21:07:10 UTC
The method insertByIndex() doesn't throw an exception if the index is greater the the column count. To reproduce the behaviour just run the following macro. Dim nRows As Long, nCols As Long nRows = 5 nCols = 5 oDoc = ThisComponent oCursor = oDoc.Text.createTextCursor() oTable = oDoc.createInstance("com.sun.star.text.TextTable") oTable.initialize(nRows, nCols) oCursor.gotoEnd(false) oDoc.Text.insertTextContent(oCursor, oTable, false) oColumns = oTable.Columns 'oColumns.insertByIndex(-1,1) oColumns.insertByIndex(17,1)
.
SW: doesn't seem to be essential for OOo2.0 => target OOo Later
Fixed in CWS tl14. Files changed: offapi: - com/sun/star/table/XTableColumns.idl new revision: 1.7.212.1 - com/sun/star/table/XTableRows.idl new revision: 1.7.212.1 sw: - unotbl.cxx new revision: 1.91.168.3 Added comments about exceptions being throen when the index/count combination is out of bounds. TL: Note need to ask OS about the change to SwXCellRange::setPropertyValue where lcl_setCrsrPropertyValue is used now.
*** Issue 35453 has been marked as a duplicate of this issue. ***
new target OO2.0.1
Reassigned for verification re-open issue and reassign to sw@openoffice.org
reassign to sw@openoffice.org
reset resolution to FIXED
ok in cws_tl14 => verified
sw: works as expected in src680_m140 => closed