Fix for N_SE-50153 ( E_OBJ_NOT_FOUND)
authorkatpaga.a <katpaga.a@samsung.com>
Wed, 28 Aug 2013 10:05:25 +0000 (15:35 +0530)
committerkatpaga.a <katpaga.a@samsung.com>
Wed, 28 Aug 2013 12:10:50 +0000 (17:40 +0530)
Signed-off-by: katpaga.a <katpaga.a@samsung.com>
Change-Id: I9bba85fe444b76cadcb72033d54a4ee7746932b6
Signed-off-by: katpaga.a <katpaga.a@samsung.com>
src/ui/controls/FUiCtrlTableView.cpp
src/ui/controls/FUiCtrl_TableViewPresenter.cpp

index 9056e44..eb6fa24 100644 (file)
@@ -214,12 +214,14 @@ TableView::GetTopDrawnItemIndex(void) const
 int
 TableView::GetBottomDrawnItemIndex(void) const
 {
+       result r = E_SUCCESS;
        const _TableViewImpl* pImpl = _TableViewImpl::GetInstance(*this);
        SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
 
        int itemIndex = -1;
        int groupIndex = -1;
-       pImpl->GetBottomDrawnItemIndex(groupIndex, itemIndex);
+       r = pImpl->GetBottomDrawnItemIndex(groupIndex, itemIndex);
+       SetLastResult(r);
 
        return itemIndex;
 }
index 83660f1..3d21514 100644 (file)
@@ -2441,7 +2441,7 @@ _TableViewPresenter::GetBottomDrawnItem(TableViewItemTag& itemPos) const
                itemPos.itemIndex = -1;
                itemPos.groupIndex = -1;
 
-               return E_INVALID_STATE;
+               return E_OBJ_NOT_FOUND;
        }
 
        float scrollPosition = GetScrollPosition() + __pTableView->GetBoundsF().height;