emailuis/uicomponents/src/fstreenode.cpp
branchRCL_3
changeset 61 dcf0eedfc1a3
parent 0 8466d47a6819
equal deleted inserted replaced
60:d620048b4810 61:dcf0eedfc1a3
    65 TInt CFsTreeNode::InsertChild( CFsTreeItem* aItem, const TInt aIndex )
    65 TInt CFsTreeNode::InsertChild( CFsTreeItem* aItem, const TInt aIndex )
    66     {
    66     {
    67     FUNC_LOG;
    67     FUNC_LOG;
    68     TInt childIndex = 0;
    68     TInt childIndex = 0;
    69 
    69 
    70     if ( aIndex == KFsTreeChildIndexLast )
    70     if ( aIndex >= iChildren.Count() || aIndex == KFsTreeChildIndexLast )
    71         {
    71         {
    72         childIndex = iChildren.Append( aItem );
    72         childIndex = iChildren.Append( aItem );
    73         }
    73         }
    74     else
    74     else
    75         {
    75         {