Repository: flex-tlf Updated Branches: refs/heads/develop 0b00e3aab -> 47ea3543e
insertColumnAt columns.length was failing. This is now fixed. There's no check for merged cells which will cause it to fail as well. It might be a good idea to add more complex logic to handle that, but currently adding columns to tables with merged cells will cause all kinds of trouble and we do not support that. Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/47ea3543 Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/47ea3543 Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/47ea3543 Branch: refs/heads/develop Commit: 47ea3543e90774a672d1560eae527d0fac89baa9 Parents: 0b00e3a Author: Harbs <[email protected]> Authored: Sat Nov 29 22:59:14 2014 +0200 Committer: Harbs <[email protected]> Committed: Sat Nov 29 22:59:14 2014 +0200 ---------------------------------------------------------------------- textLayout/src/flashx/textLayout/elements/TableElement.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/47ea3543/textLayout/src/flashx/textLayout/elements/TableElement.as ---------------------------------------------------------------------- diff --git a/textLayout/src/flashx/textLayout/elements/TableElement.as b/textLayout/src/flashx/textLayout/elements/TableElement.as index c7f2fbc..beba4e7 100644 --- a/textLayout/src/flashx/textLayout/elements/TableElement.as +++ b/textLayout/src/flashx/textLayout/elements/TableElement.as @@ -476,7 +476,10 @@ package flashx.textLayout.elements } cellIdx = getCellIndex(rowIdx,idx); if(cellIdx < 0) - cellIdx = numChildren; + { + cellIdx = getCellIndex(rowIdx,idx-1); + cellIdx++; + } if(rowIdx < numRows){ addChildAt(cellIdx,cell);
