emailuis/uicomponents/src/fstreenode.cpp
branchRCL_3
changeset 61 dcf0eedfc1a3
parent 0 8466d47a6819
--- a/emailuis/uicomponents/src/fstreenode.cpp	Thu Jul 15 18:19:25 2010 +0300
+++ b/emailuis/uicomponents/src/fstreenode.cpp	Thu Aug 19 09:38:05 2010 +0300
@@ -67,7 +67,7 @@
     FUNC_LOG;
     TInt childIndex = 0;
 
-    if ( aIndex == KFsTreeChildIndexLast )
+    if ( aIndex >= iChildren.Count() || aIndex == KFsTreeChildIndexLast )
         {
         childIndex = iChildren.Append( aItem );
         }